diff options
Diffstat (limited to 'tests/pr220.test')
-rwxr-xr-x | tests/pr220.test | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tests/pr220.test b/tests/pr220.test index 25e1f0e5f..95212ab0e 100755 --- a/tests/pr220.test +++ b/tests/pr220.test @@ -1,5 +1,6 @@ #! /bin/sh -# Copyright (C) 2001, 2002, 2004, 2008 Free Software Foundation, Inc. +# Copyright (C) 2001, 2002, 2004, 2008, 2010 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 @@ -15,13 +16,19 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # Test for PR automake/220. +# Test for problems when conditionals are not actually defined. +# Check that the problems is diagnosed by configure. +# This isn't perfect (ideally we'd like an error from autoconf), +# but it is the best we can do. It certainly makes it easier +# to debug the problem. +# Note that this should be also in the documentation. required=gcc . ./defs || Exit 1 set -e -cat >main.c <<EOF +cat > main.c <<'EOF' int main() { return 0; } EOF @@ -57,4 +64,6 @@ cd build # configure should fail since we've done something invalid. ../configure 2>stderr && { cat stderr >&2; Exit 1; } cat stderr >&2 -grep NEVER_TRUE stderr +grep 'conditional.*NEVER_TRUE' stderr + +: |