test-acl-util: fix two issues from review
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 30 Nov 2015 20:45:39 +0000 (15:45 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 30 Nov 2015 20:48:21 +0000 (15:48 -0500)
https://github.com/systemd/systemd/pull/2063

src/test/test-acl-util.c

index bdea04d..91866da 100644 (file)
@@ -41,7 +41,7 @@ static void test_add_acls_for_user(void) {
         assert_se(fd >= 0);
 
         /* Use the mode that user journal files use */
-        assert(fchmod(fd, 0640) == 0);
+        assert_se(fchmod(fd, 0640) == 0);
 
         cmd = strjoina("ls -l ", fn);
         assert_se(system(cmd) == 0);
@@ -82,4 +82,6 @@ static void test_add_acls_for_user(void) {
 
 int main(int argc, char **argv) {
         test_add_acls_for_user();
+
+        return 0;
 }