From: Ralf Wildenhues Date: Sun, 2 Mar 2008 13:14:44 +0000 (+0100) Subject: * tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS): X-Git-Tag: v2.62~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8b318e84872dda945032dc95ac38aebb77be2807;p=thirdparty%2Fautoconf.git * 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 --- diff --git a/ChangeLog b/ChangeLog index 4ff1a7c4..199d5faf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2008-03-02 Ralf Wildenhues + * 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 diff --git a/tests/torture.at b/tests/torture.at index ec86e22c..58785aee 100644 --- a/tests/torture.at +++ b/tests/torture.at @@ -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/full], - [1], [ignore], [ignore]) +if test -w /dev/full && test -c /dev/full; then + AT_CHECK([./config.status --file=-:input /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/full], - [1], [ignore], [ignore]) +if test -w /dev/full && test -c /dev/full; then + AT_CHECK([./config.status --header=-:input /dev/full], + [1], [ignore], [ignore]) +fi # Execute a command AT_CHECK_CONFIG_CREATION_NOWRITE(command)