| 1 |
--- gnu.orig/tests/tail/overlay-headers.sh 2025-12-07 23:20:20.566198669 +0100 |
| 2 |
+++ gnu/tests/tail/overlay-headers.sh 2025-12-07 23:20:20.570198688 +0100 |
| 3 |
@@ -56,26 +56,39 @@ |
| 4 |
|
| 5 |
kill -0 $pid || fail=1 |
| 6 |
|
| 7 |
-# Wait for 5 initial lines |
| 8 |
-retry_delay_ wait4lines_ .1 6 5 || fail=1 |
| 9 |
+# Wait for 5 initial lines (2 headers + 2 content lines + 1 blank) |
| 10 |
+retry_delay_ wait4lines_ .1 6 5 || { echo "Failed waiting for initial 5 lines"; fail=1; } |
| 11 |
+ |
| 12 |
+echo "=== After initial wait, line count: $(countlines_) ===" |
| 13 |
+echo "=== Initial output: ===" && cat out && echo "=== End initial output ===" |
| 14 |
|
| 15 |
# Suspend tail so single read() caters for multiple inotify events |
| 16 |
-kill -STOP $pid || fail=1 |
| 17 |
+kill -STOP $pid || { echo "Failed to STOP tail process"; fail=1; } |
| 18 |
|
| 19 |
# Interleave writes to files to generate overlapping inotify events |
| 20 |
echo line >> file1 || framework_failure_ |
| 21 |
echo line >> file2 || framework_failure_ |
| 22 |
echo line >> file1 || framework_failure_ |
| 23 |
echo line >> file2 || framework_failure_ |
| 24 |
+echo "=== Files written, resuming tail ===" |
| 25 |
|
| 26 |
# Resume tail processing |
| 27 |
-kill -CONT $pid || fail=1 |
| 28 |
+kill -CONT $pid || { echo "Failed to CONT tail process"; fail=1; } |
| 29 |
|
| 30 |
-# Wait for 8 more lines |
| 31 |
-retry_delay_ wait4lines_ .1 6 13 || fail=1 |
| 32 |
+# Wait for 8 more lines (should total 13) |
| 33 |
+retry_delay_ wait4lines_ .1 6 13 || { echo "Failed waiting for 13 total lines"; fail=1; } |