Commit 03d716b3 authored by Simon Marlow's avatar Simon Marlow
Browse files

fix getting the exit code

parent 9a11883c
...@@ -223,6 +223,7 @@ cat /dev/null > $DefaultStderrFile ...@@ -223,6 +223,7 @@ cat /dev/null > $DefaultStderrFile
$PreScriptLines $PreScriptLines
$SpixifyLine1 $SpixifyLine1
$TimeCmd /bin/sh -c \'$CachegrindPrefix $ToRun $TimingMagic @PgmArgs < $PgmStdinFile 1> $TmpPrefix/runtest$$.1.raw 2> $TmpPrefix/runtest$$.2.raw 3> $TmpPrefix/runtest$$.3.raw\' $TimeCmd /bin/sh -c \'$CachegrindPrefix $ToRun $TimingMagic @PgmArgs < $PgmStdinFile 1> $TmpPrefix/runtest$$.1.raw 2> $TmpPrefix/runtest$$.2.raw 3> $TmpPrefix/runtest$$.3.raw\'
progexit=\$?
if [ "$StdoutBinary" = "0" ]; then if [ "$StdoutBinary" = "0" ]; then
dos2unix < $TmpPrefix/runtest$$.1.raw > $TmpPrefix/runtest$$.1 dos2unix < $TmpPrefix/runtest$$.1.raw > $TmpPrefix/runtest$$.1
else else
...@@ -234,7 +235,6 @@ else ...@@ -234,7 +235,6 @@ else
cp $TmpPrefix/runtest$$.2.raw $TmpPrefix/runtest$$.2 cp $TmpPrefix/runtest$$.2.raw $TmpPrefix/runtest$$.2
fi fi
dos2unix < $TmpPrefix/runtest$$.3.raw > $TmpPrefix/runtest$$.3 dos2unix < $TmpPrefix/runtest$$.3.raw > $TmpPrefix/runtest$$.3
progexit=\$?
if [ \$progexit -eq 0 ] && [ $PgmFail -ne 0 ]; then if [ \$progexit -eq 0 ] && [ $PgmFail -ne 0 ]; then
echo $ToRun @PgmArgs \\< $PgmStdinFile echo $ToRun @PgmArgs \\< $PgmStdinFile
echo "****" expected a failure, but was successful echo "****" expected a failure, but was successful
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment