[llvm-commits] CVS: llvm-test/RunSafelyAndStable.sh RunSafely.sh

Chris Lattner lattner at cs.uiuc.edu
Sun Nov 7 15:28:45 CST 2004



Changes in directory llvm-test:

RunSafelyAndStable.sh updated: 1.1 -> 1.2
RunSafely.sh updated: 1.15 -> 1.16
---
Log message:

Darwin awk doesn't like /**/ comments


---
Diffs of the changes:  (+2 -4)

Index: llvm-test/RunSafelyAndStable.sh
diff -u llvm-test/RunSafelyAndStable.sh:1.1 llvm-test/RunSafelyAndStable.sh:1.2
--- llvm-test/RunSafelyAndStable.sh:1.1	Sat Nov  6 14:34:42 2004
+++ llvm-test/RunSafelyAndStable.sh	Sun Nov  7 15:28:32 2004
@@ -40,10 +40,9 @@
 #
 (time -p sh -c "$PROGRAM $* > $OUTFILE 2>&1 < $INFILE") 2>&1 | awk -- '\
 BEGIN     { cpu = 0.0; }
-/^real/   { /* IGNORE */; print }
 /^user/   { cpu += $2; print }
 /^sys/    { cpu += $2; print }
-!/^real/ && !/^user/ && !/^sys/  { print }
+!/^user/ && !/^sys/  { print }
 END       { printf("program %f\n", cpu); }' > $OUTFILE.time1
 
 if test $? -eq 0


Index: llvm-test/RunSafely.sh
diff -u llvm-test/RunSafely.sh:1.15 llvm-test/RunSafely.sh:1.16
--- llvm-test/RunSafely.sh:1.15	Sat Nov  6 13:37:04 2004
+++ llvm-test/RunSafely.sh	Sun Nov  7 15:28:32 2004
@@ -38,10 +38,9 @@
 #
 (time -p sh -c "$PROGRAM $* > $OUTFILE 2>&1 < $INFILE") 2>&1 | awk -- '\
 BEGIN     { cpu = 0.0; }
-/^real/   { /* IGNORE */; print }
 /^user/   { cpu += $2; print }
 /^sys/    { cpu += $2; print }
-!/^real/ && !/^user/ && !/^sys/  { print }
+!/^user/ && !/^sys/  { print }
 END       { printf("program %f\n", cpu); }' > $OUTFILE.time
 
 if test $? -eq 0






More information about the llvm-commits mailing list