2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+ * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
+ Before using /dev/full, check that it is a writable character
+ special device.
+ Report by Benoit Sigoure and Eric Blake.
+
Actually test that @configure_input@ is expanded correctly.
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
Actually check generated file contents for the name of the
AT_CHECK([grep from-stdin file], [], [from-stdin
])
# Force write error creating a file on stdout
-AT_CHECK([./config.status --file=-:input </dev/null >/dev/full],
- [1], [ignore], [ignore])
+if test -w /dev/full && test -c /dev/full; then
+ AT_CHECK([./config.status --file=-:input </dev/null >/dev/full],
+ [1], [ignore], [ignore])
+fi
# Create a header
AT_CHECK_CONFIG_CREATION_NOWRITE(header)
AT_CHECK([grep OK stdout], [], [OK
])
# Force write error creating a header on stdout
-AT_CHECK([./config.status --header=-:input </dev/null >/dev/full],
- [1], [ignore], [ignore])
+if test -w /dev/full && test -c /dev/full; then
+ AT_CHECK([./config.status --header=-:input </dev/null >/dev/full],
+ [1], [ignore], [ignore])
+fi
# Execute a command
AT_CHECK_CONFIG_CREATION_NOWRITE(command)