]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: temporarily skip the EnterNamespace= test w/o embedded debuginfo 39268/head
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 10 Oct 2025 18:09:51 +0000 (20:09 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 11 Oct 2025 20:37:33 +0000 (22:37 +0200)
The EnterNamespace= feature currently doesn't work if the debuginfo is
separated from the crashing binary. Until that's resolved, let's run the
test only if the test binary has embedded debuginfo (.debug_info
section; e.g. when systemd is built without WITH_DEBUG=1) or it contains
MiniDebugInfo (.gnu_debugdata section; default on Fedora and CentOS).

See: https://github.com/systemd/systemd/pull/39268#issuecomment-3390745718

test/units/TEST-87-AUX-UTILS-VM.coredump.sh

index 2dfa6eccf12b92d5780335477540faaa6335be85..4f2bbf40c86b1062f33ebd6e0128f35be8f2b09a 100755 (executable)
@@ -251,7 +251,11 @@ systemd-run -t --property CoredumpFilter=default ls /tmp
 # Test for EnterNamespace= feature
 #
 # dwfl_set_sysroot() is supported only in libdw-0.192 or newer.
-if pkgconf --atleast-version 0.192 libdw; then
+#
+# FIXME: drop the objdump call once https://github.com/systemd/systemd/pull/39268#issuecomment-3390745718 is
+#        addressed
+if pkgconf --atleast-version 0.192 libdw &&
+    objdump -h -j .gnu_debugdata -j .debug_info /usr/lib/systemd/tests/unit-tests/manual/test-coredump-stacktrace; then
     MAKE_STACKTRACE_DUMP="/tmp/make-stacktrace-dump"
 
     # Simple script that mounts tmpfs on /tmp/ and copies the crashing test binary there, which in