work around BSD sed not interpreting \r in s/$/\r/

* src/kripketest/bad_parsing.test, src/tgbatest/neverclaimread.test,
src/tgbatest/readsave.test, src/tgbatest/hoaparse.test: Use Perl for the
unix2dos conversion.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-05 10:25:33 +01:00
parent a0d9268fda
commit 88da1ad84d
4 changed files with 6 additions and 11 deletions

View file

@ -68,8 +68,7 @@ cat output | grep -v + > res
diff expected res
# The diagnostic should be the same with DOS return lines
sed 's/$/\r/' input > input.dos
mv input.dos input
perl -pi -e 's/$/\r/' input
run 1 ../parse_print input 2> output
cat output | grep -v + > res
diff expected res