locktests: fix test suite

parent b41008b4
......@@ -76,7 +76,7 @@ static void test_two_locks(void)
if (WIFEXITED(status)) {
printf("%d exited normally with exit code %d\n", pid,
WEXITSTATUS(status));
if (WEXITSTATUS(status) == 0)
if (WEXITSTATUS(status) != 0)
exit(1);
} else
printf("%d did not exit normally\n", pid);
......
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