Commit fd06bc03 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Get the sign/logic right

parent 5332d212
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment