master - tests: utils.sh drop gdb_commands.txt
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d9ef564e42390e290241ec3a2e3988c1067a0139 Commit: d9ef564e42390e290241ec3a2e3988c1067a0139 Parent: 0f2dccc60176dffcf98fdd69734e3e1309095aeb Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jul 12 01:50:06 2017 +0200 Committer: Zdenek Kabelac <[email protected]> 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(-)
test/lib/utils.sh +2 -1
@@ -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_}