+2002-09-28 Akim Demaille <akim@epita.fr>
+
+ * tests/torture.at (Configuring subdirectories): Be robust to
+ users who use config.site to require for a cache: in this case,
+ the two last configure runs, using two different sets of
+ arguments, trigger a legitimate error.
+
2002-09-28 Akim Demaille <akim@epita.fr>
* tests/m4sh.at (Functions Support, Functions and return Support):
])
# Make sure precious variables and command line options are properly
-# passed, even when there are duplicates.
-AT_CHECK([cd builddir && ../configure --prefix /bad --prefix /good INNER=bad INNER=good], 0, [ignore])
-AT_CHECK([cat builddir/inner/innermost/config], 0,
+# passed, even when there are duplicates. Run another directory so
+# that if the user has set config.site to have a config.cache, then
+# the two runs don't have colliding caches.
+AS_MKDIR_P([builddir2])
+AT_CHECK([cd builddir2 && ../configure --prefix /bad --prefix /good INNER=bad INNER=good], 0, [ignore])
+AT_CHECK([cat builddir2/inner/innermost/config], 0,
[INNER=good
srcdir=../../../inner/innermost
top_srcdir=../../../inner