From: Zdenek Kabelac Date: Tue, 11 Jul 2017 19:52:27 -0400 Subject: master - tests: utils.sh drop gdb_commands.txt Message-ID: <201707112352.v6BNqRbD014751@lists01.pubmisc.prod.ext.phx2.redhat.com> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d9ef564e42390e290241ec3a2e3988c1067a0139 Commit: d9ef564e42390e290241ec3a2e3988c1067a0139 Parent: 0f2dccc60176dffcf98fdd69734e3e1309095aeb Author: Zdenek Kabelac AuthorDate: Wed Jul 12 01:50:06 2017 +0200 Committer: Zdenek Kabelac CommitterDate: Wed Jul 12 01:50:06 2017 +0200 tests: utils.sh drop gdb_commands.txt Remove file after use (fixes recursive STACKTRACE calls) --- test/lib/utils.sh | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/test/lib/utils.sh b/test/lib/utils.sh index 8545703..f8bb949 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_}