]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: temporarily skip the EnterNamespace= test w/o embedded debuginfo
authorFrantisek Sumsal <frantisek@sumsal.cz>
Fri, 10 Oct 2025 18:09:51 +0000 (20:09 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 Nov 2025 08:49:11 +0000 (09:49 +0100)
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
(cherry picked from commit 80b4cacf1b121c8b1ec444970cc566dc4efd1837)

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

index 354498a5ff61aa24feca1fcca32f3818853bd931..19f0fa280e78658ede2a214f3962e729a2d9d664 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