Changes in directory llvm-test:
RunSafely.sh updated: 1.20 -> 1.21 --- Log message: Only use the watchdog script for Darwin. --- Diffs of the changes: (+10 -1) RunSafely.sh | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletion(-) Index: llvm-test/RunSafely.sh diff -u llvm-test/RunSafely.sh:1.20 llvm-test/RunSafely.sh:1.21 --- llvm-test/RunSafely.sh:1.20 Wed Jun 7 13:57:36 2006 +++ llvm-test/RunSafely.sh Wed Jun 7 15:11:31 2006 @@ -57,12 +57,21 @@ # we tell time to launch a shell which in turn executes $PROGRAM with the # necessary I/O redirection. # -( time -p sh -c "${DIR}TimedExec.sh $ULIMIT $PROGRAM $* > $OUTFILE 2>&1 < $INFILE" ) 2>&1 | awk -- '\ +if [ $SYSTEM == Darwin ]; then + ( time -p sh -c "${DIR}TimedExec.sh $ULIMIT $PROGRAM $* > $OUTFILE 2>&1 < $INFILE" ) 2>&1 | awk -- '\ BEGIN { cpu = 0.0; } /^user/ { cpu += $2; print } /^sys/ { cpu += $2; print } !/^user/ && !/^sys/ { print } END { printf("program %f\n", cpu); }' > $OUTFILE.time +else + ( time -p sh -c "$PROGRAM $* > $OUTFILE 2>&1 < $INFILE" ) 2>&1 | awk -- '\ +BEGIN { cpu = 0.0; } +/^user/ { cpu += $2; print } +/^sys/ { cpu += $2; print } +!/^user/ && !/^sys/ { print } +END { printf("program %f\n", cpu); }' > $OUTFILE.time +fi if test $? -eq 0 then _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits