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
This commit is contained in:
Frantisek Sumsal
2025-10-10 20:09:51 +02:00
parent 4d8e8d44ab
commit 80b4cacf1b

View File

@@ -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