This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch tymux-10-quiet-head
in repository terminology.
View the commit online.
commit 7666c88c9f39b9522fe0c67cfe9ddc9fb0b66933
Author: Cedric BAIL <[email protected]>
AuthorDate: Fri Nov 20 06:41:52 2026 -0600
tytest_tymux: give live_compress more pages than the window keeps
The test checked that the client let go of some page, with only four
pages: at the bottom the window and its release hysteresis may keep all
four mapped, depending on where the anchor was at the last release
pass. It failed about one run in ten. Six pages leave two that the
window must release.
For the same reason _window_bottom_done, which wanted every page more
than 2 behind the head unmapped, now allows for the pages the window
keeps until the view has moved by the release hysteresis.
---
src/bin/tytest_tymux.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/src/bin/tytest_tymux.c b/src/bin/tytest_tymux.c
index 43922a06..93d377c4 100644
--- a/src/bin/tytest_tymux.c
+++ b/src/bin/tytest_tymux.c
@@ -911,7 +911,8 @@ _window_oldest_done(void *data)
return value > 0 && _backlog_number(ty, oldest - 1) == value + 1;
}
-/* Only the head and the pages of the window around it are mapped. */
+/* Only the head and the pages of the window around it are mapped, and the
+ * pages that the release hysteresis still keeps after the last pass. */
static Eina_Bool
_window_bottom_done(void *data)
{
@@ -920,7 +921,8 @@ _window_bottom_done(void *data)
for (i = 0; i < head; i++)
{
- if (ts->pages[i].mapped && i + BACKLOG_KEEP_BEHIND < head)
+ if (ts->pages[i].mapped &&
+ i + BACKLOG_KEEP_BEHIND + BACKLOG_RELEASE_HYSTERESIS - 1 < head)
return EINA_FALSE;
}
return ts->pages[head].mapped != NULL;
@@ -1111,10 +1113,13 @@ _live_compress_body(void)
termtymux_resize(ts, 80, SCREEN_ROWS);
assert(tytest_tymux_wait(_screen_rows_done, ty, 5.0));
assert(tytest_tymux_wait(_prompt_done, ty, 5.0));
- assert(tytest_tymux_type(ts, ty, "seq -f '%g" COMPRESS_PAD "' 1 4000; echo " WINDOW_MARKER
+ assert(tytest_tymux_type(ts, ty, "seq -f '%g" COMPRESS_PAD "' 1 6000; echo " WINDOW_MARKER
"; seq 1 30\n"));
assert(tytest_tymux_wait(_window_marker_done, ty, 30.0));
- assert(ts->pages_count > 3);
+ /* more pages than the window and the release hysteresis keep, so that
+ * some must have been let go of once the window settled at the bottom */
+ assert(ts->pages_count >
+ BACKLOG_KEEP_BEHIND + BACKLOG_RELEASE_HYSTERESIS);
termtymux_viewport_set(ts, 0);
assert(tytest_tymux_wait(_window_bottom_done, ts, 10.0));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.