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 b5b2f3d6e01e73767735213ec1e20b1275cd4fd9
Author: Boris Faure <[email protected]>
AuthorDate: Sat Oct 31 14:30:14 2026 +0000

    tytest: checksum and dump the progress state
    
    A test that reports progress pins the final (state, value) pair in its
    checksum.
    The pair is hashed only when the state is not NONE, so every test that
    never reports progress keeps its byte stream and its checksum. --dump
    gains a progress= line; the dump is a debugging aid and run_tests.sh
    never reads it.
---
 src/bin/tytest.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/bin/tytest.c b/src/bin/tytest.c
index ff362721..d1509ec3 100644
--- a/src/bin/tytest.c
+++ b/src/bin/tytest.c
@@ -681,6 +681,15 @@ _tytest_checksum_hex(Termpty *ty, char *md5out)
         MD5Update(&ctx, (unsigned char const*)notifications,
                   strlen(notifications));
      }
+
+   /* Progress (OSC 9;4). Hashed only when the indicator is shown, so the
+    * byte stream is unchanged for every test that never reports one. */
+   if (ty->progress.state != TERMPTY_PROGRESS_NONE)
+     {
+        MD5Update(&ctx, (unsigned char const*)&ty->progress.state, 1);
+        MD5Update(&ctx, &ty->progress.value, 1);
+     }
+
    /* Cursor shape */
    const char *cursor_shape = tytest_cursor_shape_get();
    MD5Update(&ctx, (unsigned char const*)cursor_shape,
@@ -959,6 +968,8 @@ _tytest_dump(Termpty *ty)
    printf("title=%s\n", ty->prop.title ? ty->prop.title : "(NULL)");
    printf("icon=%s\n", ty->prop.icon ? ty->prop.icon : "(NULL)");
    printf("cwd=%s\n", ty->prop.cwd ? ty->prop.cwd : "(NULL)");
+   printf("progress state=%d value=%d\n",
+          (int)ty->progress.state, (int)ty->progress.value);
    printf("notifications=%s\n",
           tytest_notifications_get() ? tytest_notifications_get() : "(none)");
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to