* sourcesub.test: New file.
authorTom Tromey <tromey@redhat.com>
Thu, 13 May 1999 20:19:27 +0000 (20:19 +0000)
committerTom Tromey <tromey@redhat.com>
Thu, 13 May 1999 20:19:27 +0000 (20:19 +0000)
* Makefile.am (TESTS): Added sourcesub.test.

tests/ChangeLog
tests/Makefile.am
tests/Makefile.in
tests/sourcesub.test [new file with mode: 0755]

index 45f9a5a..03e2606 100644 (file)
@@ -1,3 +1,8 @@
+1999-05-13  Tom Tromey  <tromey@cygnus.com>
+
+       * sourcesub.test: New file.
+       * Makefile.am (TESTS): Added sourcesub.test.
+
 1999-05-01  Tom Tromey  <tromey@cygnus.com>
 
        * libobj2.test: Reverted previous change; it is incorrect.
index 6d96842..c74932c 100644 (file)
@@ -185,6 +185,7 @@ rulepat.test \
 scripts.test \
 seenc.test \
 sinclude.test \
+sourcesub.test \
 specflags.test \
 specflags2.test        \
 specflags3.test        \
index 472a77a..8cf507a 100644 (file)
@@ -250,6 +250,7 @@ rulepat.test \
 scripts.test \
 seenc.test \
 sinclude.test \
+sourcesub.test \
 specflags.test \
 specflags2.test        \
 specflags3.test        \
diff --git a/tests/sourcesub.test b/tests/sourcesub.test
new file mode 100755 (executable)
index 0000000..01a2175
--- /dev/null
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+# Test to make sure config sub in _SOURCES fails.
+
+. $srcdir/defs || exit 1
+
+cat >> configure.in << 'END'
+AC_PROG_CC
+END
+
+cat > Makefile.am << 'END'
+bin_PROGRAMS = x
+x_SOURCES = x.c @FOO@
+EXTRA_x_SOURCES = y.c
+END
+
+$AUTOMAKE && exit 1
+exit 0