From: Mark Wielaard Date: Wed, 1 Jul 2026 18:44:51 +0000 (+0200) Subject: tests: Enable valgrind for stack trace testcases X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fheads%2Fusers%2Fmark%2Ftry-stack-trace-valgrind;p=thirdparty%2Felfutils.git tests: Enable valgrind for stack trace testcases --- diff --git a/tests/run-backtrace-demangle.sh b/tests/run-backtrace-demangle.sh index 403a4852..e19a2511 100755 --- a/tests/run-backtrace-demangle.sh +++ b/tests/run-backtrace-demangle.sh @@ -26,11 +26,6 @@ child=testfile-backtrace-demangle testfiles $child{,.core} tempfiles $child.{bt,err} -# Disable valgrind while dumping because of a bug unmapping libc.so. -# https://bugs.kde.org/show_bug.cgi?id=327427 -SAVED_VALGRIND_CMD="$VALGRIND_CMD" -unset VALGRIND_CMD - # There can be more than 3 frames, but depending on the system/installed # glibc we might not be able to unwind fully till the end. # cxxfunc -> f -> main @@ -39,11 +34,6 @@ unset VALGRIND_CMD testrun ${abs_top_builddir}/src/stack -n 2 -e $child --core $child.core >$child.bt 2>$child.err || exitcode=$? cat $child.{bt,err} -if [ "x$SAVED_VALGRIND_CMD" != "x" ]; then - VALGRIND_CMD="$SAVED_VALGRIND_CMD" - export VALGRIND_CMD -fi - if test $exitcode != 1 || ! grep "shown max number of frames" $child.err; then echo >&2 $2: expected more than 2 frames false diff --git a/tests/run-stack-d-test.sh b/tests/run-stack-d-test.sh index a9f03806..41982014 100755 --- a/tests/run-stack-d-test.sh +++ b/tests/run-stack-d-test.sh @@ -68,11 +68,6 @@ else STACKCMD=${abs_top_builddir}/src/stack fi -# Disable valgrind while dumping because of a bug unmapping libc.so. -# https://bugs.kde.org/show_bug.cgi?id=327427 -SAVED_VALGRIND_CMD="$VALGRIND_CMD" -unset VALGRIND_CMD - # Without -d the top function comes out as fu. Use --raw to not demangle. testrun_compare ${abs_top_builddir}/src/stack -r -n 2 -e testfiledwarfinlines --core testfiledwarfinlines.core<