]> The Tcpdump Group git mirrors - tcpdump/commitdiff
if there is a core dump, then save it
authorMichael Richardson <[email protected]>
Fri, 31 May 2019 17:20:54 +0000 (13:20 -0400)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 27 Aug 2019 09:20:43 +0000 (11:20 +0200)
tests/TESTrun.sh

index 07bad6cbfa4138c4e11bc4a6493d1f4a5809475a..98e644bfa2bc42d29f2dc6fb97b087614cadeb9d 100755 (executable)
@@ -34,6 +34,9 @@ runSimpleTests()
       failed=`expr $failed + 1`
       echo $failed >.failed
     fi
+    if [ -d COREFILES ]; then
+        if [ -f core ]; then mv core COREFILES/$name.core; fi
+    fi
     [ "$only" != "" -a "$name" = "$only" ] && break
   done
   # I hate shells with their stupid, useless subshells.