diff options
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-capability.c | 2 | ||||
-rw-r--r-- | src/test/test-ns.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-capability.c b/src/test/test-capability.c index a362fc6c57..43769923b0 100644 --- a/src/test/test-capability.c +++ b/src/test/test-capability.c @@ -70,7 +70,7 @@ static int setup_tests(void) { nobody = getpwnam("nobody"); if (!nobody) { - log_error("Could not find nobody user: %m"); + log_error_errno(errno, "Could not find nobody user: %m"); return -EXIT_TEST_SKIP; } test_uid = nobody->pw_uid; diff --git a/src/test/test-ns.c b/src/test/test-ns.c index e66d97ff33..7cd7b77153 100644 --- a/src/test/test-ns.c +++ b/src/test/test-ns.c @@ -70,7 +70,7 @@ int main(int argc, char *argv[]) { } execl("/bin/sh", "/bin/sh", NULL); - log_error("execl(): %m"); + log_error_errno(errno, "execl(): %m"); return 1; } |