]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-cgroup-mask: check return value
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jan 2016 01:20:02 +0000 (20:20 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jan 2016 23:55:56 +0000 (18:55 -0500)
CID #1339830.

src/test/test-cgroup-mask.c

index 27460135226a1c9862e2eb4f8fc7f0550ff5915f..a33519b9da8ad8e2b020db717b10b47c3f4cbd13 100644 (file)
@@ -40,6 +40,7 @@ static int test_cgroup_mask(void) {
                 puts("manager_new: Permission denied. Skipping test.");
                 return EXIT_TEST_SKIP;
         }
+        assert_se(r >= 0);
 
         /* Turn off all kinds of default accouning, so that we can
          * verify the masks resulting of our configuration and nothing