fix line number tracking in files with DOS newlines
* src/dstarparse/dstarscan.ll, src/kripkeparse/kripkescan.ll, src/neverparse/neverclaimscan.ll, src/tgbaparse/tgbascan.ll: Distinguish between 1-sized EOL and 2-sized EOL. * src/kripketest/bad_parsing.test, src/tgbatest/neverclaimread.test, src/tgbatest/readsave.test: Add more tests. * NEWS: Mention it. * src/kripkeparse/scankripke.ll: Remove this unused file.
This commit is contained in:
parent
881afd67ba
commit
45e9b96b66
9 changed files with 48 additions and 128 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#! /bin/sh
|
||||
|
||||
# Copyright (C) 2011 Laboratoire de Recherche et Developpement
|
||||
# -*- coding: utf-8 -*-
|
||||
# Copyright (C) 2011, 2014 Laboratoire de Recherche et Développement
|
||||
# de l'Epita (LRDE)
|
||||
#
|
||||
# This file is part of Spot, a model checking library.
|
||||
|
|
@ -67,6 +67,14 @@ run 1 ../parse_print input 2> output
|
|||
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
|
||||
run 1 ../parse_print input 2> output
|
||||
cat output | grep -v + > res
|
||||
diff expected res
|
||||
|
||||
|
||||
rm -f output res expected
|
||||
|
||||
cat >input <<\EOF
|
||||
|
|
@ -86,4 +94,3 @@ cat output | grep -v + > res
|
|||
diff expected res
|
||||
|
||||
rm -f output res expected
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue