chiark / gitweb /
test-path: do not skip tests if we are not root
authorRonny Chevalier <chevalier.ronny@gmail.com>
Wed, 14 Jan 2015 23:07:15 +0000 (00:07 +0100)
committerRonny Chevalier <chevalier.ronny@gmail.com>
Wed, 14 Jan 2015 23:57:44 +0000 (00:57 +0100)
We can properly run the tests without being root

src/test/test-path.c

index 2063ed25439545444269cccd3874a56368c5de2d..1512ae2b195aad753a15b3c70b453893efce9fd8 100644 (file)
@@ -248,10 +248,6 @@ int main(int argc, char *argv[]) {
         log_parse_environment();
         log_open();
 
-        /* It is needed otherwise cgroup creation fails */
-        if (getuid() != 0)
-                return EXIT_TEST_SKIP;
-
         assert_se(set_unit_path(TEST_DIR ":") >= 0);
 
         for (test = tests; test && *test; test++) {