[lvm-devel] master - tests: utils.sh drop gdb_commands.txt
Zdenek Kabelac
zkabelac at sourceware.org
Tue Jul 11 23:52:27 UTC 2017
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=d9ef564e42390e290241ec3a2e3988c1067a0139
Commit: d9ef564e42390e290241ec3a2e3988c1067a0139
Parent: 0f2dccc60176dffcf98fdd69734e3e1309095aeb
Author: Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate: Wed Jul 12 01:50:06 2017 +0200
Committer: Zdenek Kabelac <zkabelac at redhat.com>
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_}
More information about the lvm-devel
mailing list