[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ylwrap removes too many directories from output
From: |
Stefano Lattarini |
Subject: |
Re: ylwrap removes too many directories from output |
Date: |
Wed, 16 May 2012 18:26:10 +0200 |
On 05/16/2012 06:17 PM, Stefano Lattarini wrote:
> I will push by tomorrow if there is no objection.
>
And please, consider the diff below squashed in.
Sorry for the noise,
Stefano
-*-*-*-
diff --git a/t/lex-line.sh b/t/lex-line.sh
index f690e7e..a95faf3 100755
--- a/t/lex-line.sh
+++ b/t/lex-line.sh
@@ -104,18 +104,29 @@ for vpath in : false; do
# For debugging,
ls -l . sub sub/dir
- $FGREP '.l' $c_outputs
+ $EGREP 'line|\.l' $c_outputs
- # Adjusted "#line" should not contain reference to the builddir.
- $EGREP '#.*line.*(build|\.\.).*\.l' $c_outputs && Exit 1
+ grep '#.*line.*build.*\.l' $c_outputs && Exit 1
+ # Adjusted "#line" should not contain reference to the absolute
+ # srcdir.
+ $EGREP '#.*line *"?/.*\.l' $c_outputs && Exit 1
# Adjusted "#line" should not contain reference to the default
# output file names, e.g., 'lex.yy.c'.
- $EGREP '#.*line.*lex\.yy' $c_outputs && Exit 1
- # Don't be excessively strict in grepping, to avoid spurious failures.
- grep '#.*line.*zardoz\.l' zardoz.c
- grep '#.*line.*quux\.l' bar-quux.c
- grep '#.*line.*zardoz\.l' sub/foo-zardoz.c
- grep '#.*line.*quux\.l' sub/dir/quux.c
+ grep '#.*line.*lex\.yy' $c_outputs && Exit 1
+ # Look out for a silly regression.
+ grep "#.*\.l.*\.l" $c_outputs && Exit 1
+ if $vpath; then
+ grep '#.*line.*"\.\./zardoz\.l"' zardoz.c
+ grep '#.*line.*"\.\./dir/quux\.l"' bar-quux.c
+ grep '#.*line.*"\.\./\.\./sub/zardoz\.l"' sub/foo-zardoz.c
+ grep '#.*line.*"\.\./\.\./sub/dir/quux\.l"' sub/dir/quux.c
+ else
+ grep '#.*line.*"zardoz\.l"' zardoz.c
+ grep '#.*line.*"dir/quux\.l"' bar-quux.c
+ grep '#.*line.*"zardoz\.l"' sub/foo-zardoz.c
+ grep '#.*line.*"dir/quux\.l"' sub/dir/quux.c
+ fi
+
cd $srcdir
done