Skip to content

Commit

Permalink
fix bad results with versions that create windows-eol
Browse files Browse the repository at this point in the history
I see no reason that anything could break by this change (it just removes "\r" from an expected number) and it leads to more passing tests when using cl.exe and win_flex.exe.
  • Loading branch information
GitMensch authored Sep 16, 2018
1 parent 98018e3 commit 4e2a81a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testwrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ TESTNAME=$1
INPUT_NAME=${INPUT_NAME:-$INPUT_DIRECTORY/`basename "${TESTNAME%.exe}"`.txt}

if [ $DO_COMPARISON = 1 ] ; then
TEST_OUTPUT=`$TESTNAME < $INPUT_NAME`
REF_OUTPUT=`$TESTNAME 1 < $INPUT_NAME`
TEST_OUTPUT=`$TESTNAME < $INPUT_NAME | tr -d "\r"`
REF_OUTPUT=`$TESTNAME 1 < $INPUT_NAME | tr -d "\r"`
test "$TEST_OUTPUT" -eq "$REF_OUTPUT"
exit $?
fi
Expand Down

0 comments on commit 4e2a81a

Please sign in to comment.