* 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.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Ralf Wildenhues 2008-03-02 14:14:44 +01:00
parent ad236d83f7
commit 8b318e8487
2 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,10 @@
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

View File

@ -239,8 +239,10 @@ AT_CHECK([echo from-stdin | ./config.status --file=file:-],
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)
@ -250,8 +252,10 @@ AT_CHECK([./config.status --header=-:input </dev/null],
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)