]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Coverage for syntax errors with conditionals in included fragments.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 14 Nov 2009 20:56:49 +0000 (21:56 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sat, 14 Nov 2009 20:56:49 +0000 (21:56 +0100)
* tests/condinc2.test: Amend test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/condinc2.test

index 8f0a2dd405bdbae8e6bdf9e82803d2a36453c808..adab68a8488dfe84b4b6f58a8d9c79aad2e56b1f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       Coverage for syntax errors with conditionals in included fragments.
+       * tests/condinc2.test: Amend test.
+
        Coverage: diagnose variables with forbidden dist_ prefix.
        * tests/candist.test: New test.
        * tests/Makefile.am: Update.
index 088fb5592d62e9098c6425cebced6c6c38f60ddd..69eff595085750f4d58d1096127f19f7fb786fdd 100755 (executable)
@@ -1,5 +1,6 @@
 #! /bin/sh
-# Copyright (C) 1999, 2001, 2002, 2003  Free Software Foundation, Inc.
+# Copyright (C) 1999, 2001, 2002, 2003, 2009  Free Software Foundation,
+# Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -39,3 +40,23 @@ END
 $ACLOCAL
 AUTOMAKE_fails
 grep 'adjunct:3: too many conditionals closed' stderr
+
+cat > adjunct << 'END'
+if TOBE
+target: dependency
+       rule
+END
+
+AUTOMAKE_fails
+grep 'unterminated conditionals' stderr
+
+cat > adjunct << 'END'
+if TOBE
+target: dependency
+       rule
+endif
+END
+
+$AUTOMAKE
+
+Exit 0