Skip to content

Commit

Permalink
Get the sign/logic right
Browse files Browse the repository at this point in the history
  • Loading branch information
bsdphk committed Jan 16, 2018
1 parent 5332d21 commit fd06bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/varnishtest/vtc_process.c
Expand Up @@ -324,7 +324,7 @@ process_thread(void *priv)
if (p->expect_signal >= 0 && sig != p->expect_signal)
vtc_fatal(p->vl, "Expected signal %d got %d",
p->expect_signal, sig);
else if (sig && sig != p->expect_signal)
else if (sig != 0 && sig != -p->expect_signal)
vtc_fatal(p->vl, "Expected signal %d got %d",
-p->expect_signal, sig);
if (ext != p->expect_exit)
Expand Down

0 comments on commit fd06bc0

Please sign in to comment.