work around BSD sed not interpreting \r in s/$/\r/
* src/kripketest/bad_parsing.test, src/tgbatest/neverclaimread.test, src/tgbatest/readsave.test: Use Perl for the unix2dos conversion.
This commit is contained in:
parent
7619a5a062
commit
ff03ab4f56
3 changed files with 5 additions and 5 deletions
|
|
@ -68,7 +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
|
||||
perl -pe 's/$/\r/' input > input.dos
|
||||
mv input.dos input
|
||||
run 1 ../parse_print input 2> output
|
||||
cat output | grep -v + > res
|
||||
|
|
|
|||
|
|
@ -288,7 +288,7 @@ grep input: stderr > stderrfilt
|
|||
diff stderrfilt expected-err
|
||||
|
||||
# DOS-style new lines should have the same output.
|
||||
sed 's/$/\r/g' input > input.dos
|
||||
perl -pe 's/$/\r/' input > input.dos
|
||||
mv input.dos input
|
||||
run 2 ../ltl2tgba -ks -XN input > stdout 2>stderr
|
||||
cat stderr
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Copyright (C) 2009, 2010, 2012 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE).
|
||||
# Copyright (C) 2009, 2010, 2012, 2014 Laboratoire de Recherche et
|
||||
# Développement de l'Epita (LRDE).
|
||||
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6 (LIP6),
|
||||
# département Systèmes Répartis Coopératifs (SRC), Université Pierre
|
||||
# et Marie Curie.
|
||||
|
|
@ -116,7 +116,7 @@ EOF
|
|||
diff stderrfilt expected
|
||||
|
||||
# The diagnostic should be the same with DOS input
|
||||
sed 's/$/\r/' input > input.dos
|
||||
perl -pe 's/$/\r/' input > input.dos
|
||||
mv input.dos input
|
||||
run 2 ../ltl2tgba -b -X input > stdout 2>stderr
|
||||
cat stderr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue