From: Frantisek Sumsal Date: Fri, 10 Oct 2025 18:09:51 +0000 (+0200) Subject: test: temporarily skip the EnterNamespace= test w/o embedded debuginfo X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F39268%2Fhead;p=thirdparty%2Fsystemd.git test: temporarily skip the EnterNamespace= test w/o embedded debuginfo 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 --- diff --git a/test/units/TEST-87-AUX-UTILS-VM.coredump.sh b/test/units/TEST-87-AUX-UTILS-VM.coredump.sh index 2dfa6eccf12..4f2bbf40c86 100755 --- a/test/units/TEST-87-AUX-UTILS-VM.coredump.sh +++ b/test/units/TEST-87-AUX-UTILS-VM.coredump.sh @@ -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