diff options
Diffstat (limited to 'tests/sigaction.awk')
-rw-r--r-- | tests/sigaction.awk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/sigaction.awk b/tests/sigaction.awk index ff89e3e..2c4eab6 100644 --- a/tests/sigaction.awk +++ b/tests/sigaction.awk @@ -24,7 +24,13 @@ NR == 3 && /^rt_sigaction\(SIGUSR2, {SIG_DFL, \[\], 0}, {0x[0-9a-f]+, \[QUIT TER NR == 4 && /^\+\+\+ exited with 0 \+\+\+$/ {next} { - print "Line " NR " does not match:" - print + print "Line " NR " does not match: " $0 exit 1 } + +END { + if (NR != 4) { + print "Expected 4 lines, found " NR " line(s)." + exit 1 + } +} |