]> sourceware.org Git - lvm2.git/commitdiff
tests: utils.sh drop gdb_commands.txt
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Jul 2017 23:50:06 +0000 (01:50 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 11 Jul 2017 23:50:06 +0000 (01:50 +0200)
Remove file after use (fixes recursive STACKTRACE calls)

test/lib/utils.sh

index 85457039ad7b86d3950f8fce5b4b4947a6578f9d..f8bb949fd5829ff45f5b9cde7bfb553d82eb5bc7 100644 (file)
@@ -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_}
This page took 0.034814 seconds and 5 git commands to generate.