Fixup for lirasm Windows test failure
authorRick Reitmaier <rreitmai@adobe.com>
Tue, 02 Nov 2010 20:48:44 -0700
changeset 57696 104e20381ef1c09ded64ce4eeb3fcdb00d9c8796
parent 57695 2b77342e96dd89e2c5b2294a682d4d5ad88355f4
child 57697 3e76412d374912f45e00f05ddaa91040870bf397
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
milestone2.0b8pre
Fixup for lirasm Windows test failure cygwin sed wasn't trimming the output in the same fashion than osx's version of sed. Removing the escape slash appears to work.
js/src/lirasm/testlirc.sh
--- a/js/src/lirasm/testlirc.sh
+++ b/js/src/lirasm/testlirc.sh
@@ -22,17 +22,17 @@ function runtest {
 
     if [[ ! -e "$outfile" ]]
     then
         echo "$0: error: no out file $outfile"
         exit 1
     fi
 
     # sed used to strip extra leading zeros from exponential values 'e+00' (see bug 602786)
-    if $LIRASM $options --execute $infile | tr -d '\r' | sed -e 's/e\+00*/e\+0/g' > testoutput.txt && cmp -s testoutput.txt $outfile
+    if $LIRASM $options --execute $infile | tr -d '\r' | sed -e 's/e+00*/e+0/g' > testoutput.txt && cmp -s testoutput.txt $outfile
     then
         echo "TEST-PASS | lirasm | lirasm $options --execute $infile"
     else
         echo "TEST-UNEXPECTED-FAIL | lirasm | lirasm $options --execute $infile"
         echo "expected output"
         cat $outfile
         echo "actual output"
         cat testoutput.txt