summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-10-11 17:53:34 +0200
committerMike Yuan <me@yhndnzj.com>2024-10-15 01:16:57 +0200
commit8e39ba3e5a73b7e84dc8766f9583ff43cb6a28eb (patch)
treeaeab6aa9e2008b976d609bab1dafbb2822b3a0fc /src/test
parentbasic/stat-util: use xopenat() where appropriate (diff)
downloadsystemd-8e39ba3e5a73b7e84dc8766f9583ff43cb6a28eb.tar.xz
systemd-8e39ba3e5a73b7e84dc8766f9583ff43cb6a28eb.zip
shared/exec-util: minor rearrangement, drop unused EXEC_DIR_NONE
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test-exec-util.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/test-exec-util.c b/src/test/test-exec-util.c
index 301e02db0b..8ccede252a 100644
--- a/src/test/test-exec-util.c
+++ b/src/test/test-exec-util.c
@@ -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);