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.

git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@105146 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2010-05-30 04:38:47 +00:00
Родитель 85e5d2156b
Коммит 3a5bca6beb
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -130,6 +130,7 @@ rm -f core core.*
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 \