[llvm-commits] [test-suite] r99672 - /test-suite/trunk/RunSafely.sh

Daniel Dunbar daniel at zuster.org
Fri Mar 26 16:42:12 PDT 2010


Author: ddunbar
Date: Fri Mar 26 18:42:12 2010
New Revision: 99672

URL: http://llvm.org/viewvc/llvm-project?rev=99672&view=rev
Log:
RunSafely: Add RUNSAFELY_UTIME_ONLY variable, which stops RunSafely from adding
in the system time to the values it reports.

Modified:
    test-suite/trunk/RunSafely.sh

Modified: test-suite/trunk/RunSafely.sh
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/RunSafely.sh?rev=99672&r1=99671&r2=99672&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Fri Mar 26 18:42:12 2010
@@ -136,7 +136,7 @@
     | awk -- '\
 BEGIN     { cpu = 0.0; }
 /^user/   { cpu += $2; print; }
-/^sys/    { cpu += $2; print; }
+/^sys/    { if (!ENVIRON["RUNSAFELY_UTIME_ONLY"]) { cpu += $2; }; print; }
 !/^user/ && !/^sys/  { print; }
 END       { printf("program %f\n", cpu); }' > $OUTFILE.time
 else
@@ -151,7 +151,7 @@
   cat $PWD/${OUTFILE}.remote.time | awk -- '\
 BEGIN     { cpu = 0.0; }
 /^user/   { cpu += $2; print; }
-/^sys/    { cpu += $2; print; }
+/^sys/    { if (!ENVIRON["RUNSAFELY_UTIME_ONLY"]) { cpu += $2; }; print; }
 !/^user/ && !/^sys/  { print; }
 END       { printf("program %f\n", cpu); }' > $OUTFILE.time
 sleep 1





More information about the llvm-commits mailing list