]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-capability.c
tests: use a helper function to parse environment and open logging
[thirdparty/systemd.git] / src / test / test-capability.c
index 79ddca955419c5618739e49dde7e15795e3511fd..730dbf8cbdaaca84d5c748991c30ce3f45efa232 100644 (file)
@@ -220,12 +220,11 @@ static void test_set_ambient_caps(void) {
 int main(int argc, char *argv[]) {
         bool run_ambient;
 
+        test_setup_logging(LOG_INFO);
+
         test_last_cap_file();
         test_last_cap_probe();
 
-        log_parse_environment();
-        log_open();
-
         log_info("have ambient caps: %s", yes_no(ambient_capabilities_supported()));
 
         if (getuid() != 0)