[llvm-commits] [test-suite] r105146 - /test-suite/trunk/RunSafely.sh
Daniel Dunbar
daniel at zuster.org
Sat May 29 21:38:47 PDT 2010
Author: ddunbar
Date: Sat May 29 23:38:47 2010
New Revision: 105146
URL: http://llvm.org/viewvc/llvm-project?rev=105146&view=rev
Log:
Teach RunSafely to rescape quotes in the command, so that they get passed through properly. This is important for arguments like -DFOO=\"BAR\", and fixes some problems with TEST=simple.
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=105146&r1=105145&r2=105146&view=diff
==============================================================================
--- test-suite/trunk/RunSafely.sh (original)
+++ test-suite/trunk/RunSafely.sh Sat May 29 23:38:47 2010
@@ -130,6 +130,7 @@
PWD=`pwd`
COMMAND="$RUN_UNDER $PROGRAM $*"
COMMAND="${DIR}TimedExec.sh $ULIMIT $PWD $COMMAND"
+COMMAND=$(echo "$COMMAND" | sed -e 's#"#\\"#g')
if [ "x$RHOST" = x ] ; then
( sh -c "$ULIMITCMD time -p sh -c '$COMMAND >$OUTFILE 2>&1 < $INFILE; echo exit \$?'" ) 2>&1 \
More information about the llvm-commits
mailing list