projects
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
730fdbd
)
test-fd-util: skip test when lacking privileges to create a new namespace
author
Luca Boccassi
<luca.boccassi@gmail.com>
Wed, 11 Dec 2024 18:31:08 +0000
(18:31 +0000)
committer
Luca Boccassi
<bluca@debian.org>
Wed, 11 Dec 2024 18:31:08 +0000
(18:31 +0000)
Origin: upstream, commit:
630a2e7ee195ca96e102acac8df67a278a879124
)
Forwarded: yes
Gbp-Pq: Name test-fd-util-skip-test-when-lacking-privileges-to-create-.patch
src/test/test-fd-util.c
patch
|
blob
|
history
diff --git
a/src/test/test-fd-util.c
b/src/test/test-fd-util.c
index 20cf7b7627b395fceb4c4a841142f8471055b95b..5817d92725254d3d2b5f6bebfbdf79d8d435d5a1 100644
(file)
--- a/
src/test/test-fd-util.c
+++ b/
src/test/test-fd-util.c
@@
-389,6
+389,8
@@
TEST(close_all_fds) {
test_close_all_fds_inner();
_exit(EXIT_SUCCESS);
}
+ if (ERRNO_IS_NEG_PRIVILEGE(r))
+ return (void) log_tests_skipped("Lacking privileges for test in namespace with /proc/ overmounted");
assert_se(r >= 0);
if (!is_seccomp_available())