From: Christian Brauner Date: Fri, 30 Mar 2018 05:53:02 +0000 (+0200) Subject: locktests: fix test suite X-Git-Tag: lxc-2.0.10~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=746c7ebfa3f0e1e1b6991da0b475ee77af9fef75;p=thirdparty%2Flxc.git locktests: fix test suite Signed-off-by: Christian Brauner --- diff --git a/src/tests/locktests.c b/src/tests/locktests.c index 233ca127c..e2b8914dc 100644 --- a/src/tests/locktests.c +++ b/src/tests/locktests.c @@ -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);