locktests: fix test suite

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