tests: tighten sigaction check
* tests/sigaction.awk: Check that input conatins all expected lines.
This commit is contained in:
parent
5c7f627f05
commit
b0c2a9dd5d
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user