If the program exits with code 0, make a file
git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@7039 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/RunSafely.sh b/RunSafely.sh
index 8fda89f..cef8ae0 100755
--- a/RunSafely.sh
+++ b/RunSafely.sh
@@ -26,6 +26,11 @@
rm -f core core.*
ulimit -c unlimited
(time -p $PROGRAM $* 2> $OUTFILE > $OUTFILE < $INFILE) 2> $OUTFILE.time
+if test $? -eq 0
+then
+ touch $OUTFILE.exitok
+fi
+
if ls | egrep "^core" > /dev/null
then
corefile=`ls core* | head -1`