1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

test-execute: add a test case for issue #33299

This commit is contained in:
Yu Watanabe 2024-06-23 15:52:53 +09:00
parent 84b79215cc
commit 956a9f00b4
2 changed files with 13 additions and 0 deletions

View File

@ -832,6 +832,8 @@ static void test_exec_systemcallfilter(Manager *m) {
return;
}
test(m, "exec-systemcallfilter-writing-handoff-timestamp.service", 0, CLD_EXITED);
test(m, "exec-systemcallfilter-not-failing.service", 0, CLD_EXITED);
test(m, "exec-systemcallfilter-not-failing2.service", 0, CLD_EXITED);
test(m, "exec-systemcallfilter-not-failing3.service", 0, CLD_EXITED);

View File

@ -0,0 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Unit]
Description=Test for SystemCallFilter
[Service]
ExecStart=true
Type=oneshot
# For issue #33299
SystemCallFilter=~@network-io
SystemCallFilter=~write
SystemCallErrorNumber=ENOSYS