shared/exec-util: minor rearrangement, drop unused EXEC_DIR_NONE

This commit is contained in:
Mike Yuan
2024-10-15 01:16:57 +02:00
parent e472238525
commit 8e39ba3e5a
3 changed files with 21 additions and 20 deletions
+3 -1
View File
@@ -402,7 +402,9 @@ TEST(error_catching) {
if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
return;
r = execute_directories(dirs, DEFAULT_TIMEOUT_USEC, NULL, NULL, NULL, NULL, EXEC_DIR_NONE);
r = execute_directories(dirs, DEFAULT_TIMEOUT_USEC,
/* callbacks = */ NULL, /* callback_args = */ NULL,
/* argv = */ NULL, /* envp = */ NULL, /* flags = */ 0);
/* we should exit with the error code of the first script that failed */
assert_se(r == 42);