]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-254770-segfault-if-cache-not-buildable
ensure that we exit instead of proceed in execution after the trap
[apt.git] / test / integration / test-bug-254770-segfault-if-cache-not-buildable
index 25c564daa6e3a6880efd5df89480d62b9f62a01a..8fa337ccc19734a55d266070c941984d66ca0d90 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
@@ -12,7 +12,6 @@ trap "$CURRENTTRAP" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
 chmod a-x rootdir/var/lib/dpkg
 
 testsegfault() {
-       rm -f rootdir/var/cache/apt/*.bin
        msgtest "No segfault in" "$*"
        local TEST="$($* 2>&1 | grep -v 'E:')"
        if [ -z "$TEST" ]; then