From d9ef564e42390e290241ec3a2e3988c1067a0139 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Wed, 12 Jul 2017 01:50:06 +0200 Subject: [PATCH] tests: utils.sh drop gdb_commands.txt Remove file after use (fixes recursive STACKTRACE calls) --- test/lib/utils.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lib/utils.sh b/test/lib/utils.sh index 85457039a..f8bb949fd 100644 --- a/test/lib/utils.sh +++ b/test/lib/utils.sh @@ -143,13 +143,14 @@ STACKTRACE() { sed -e "s,.*generated by \`\([^ ']*\).*,\1,") || continue gdb -batch -c "$i" -x gdb_commands.txt "$(which "$bin")" || continue done + rm -f gdb_commands.txt fi test -f SKIP_THIS_TEST && exit 200 test -z "$LVM_TEST_NODEBUG" && test -f TESTNAME && { local name - local idx + local idx=0 for i in debug.log* ; do test -f "$i" || break # nothing is found (expands to debug.log*) name=${i##debug.log_} -- 2.43.5