diff options
Diffstat (limited to 'src/test/test-path-util.c')
-rw-r--r-- | src/test/test-path-util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-path-util.c b/src/test/test-path-util.c index 06b9793fe3..3669dcbb12 100644 --- a/src/test/test-path-util.c +++ b/src/test/test-path-util.c @@ -195,7 +195,7 @@ TEST(path_equal_root) { TEST(find_executable_full) { char *p; char* test_file_name; - _cleanup_close_ int fd = -1; + _cleanup_close_ int fd = -EBADF; char fn[] = "/tmp/test-XXXXXX"; assert_se(find_executable_full("sh", NULL, NULL, true, &p, NULL) == 0); @@ -278,7 +278,7 @@ TEST(find_executable) { static void test_find_executable_exec_one(const char *path) { _cleanup_free_ char *t = NULL; - _cleanup_close_ int fd = -1; + _cleanup_close_ int fd = -EBADF; pid_t pid; int r; |