]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/torture.at (AC_CONFIG_FILES, HEADERS, LINKS and COMMANDS):
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 2 Mar 2008 13:14:44 +0000 (14:14 +0100)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Sun, 2 Mar 2008 13:14:44 +0000 (14:14 +0100)
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>
ChangeLog
tests/torture.at

index 4ff1a7c4586595f0e98c8dd57f2a9b5ceb71dfbd..199d5faf9eba95724fe7fd7c12164060d5e0fce4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index ec86e22ceb5f6b1d20165b838d25214a7932023b..58785aee2e5abfcc81865675857f2d22deb6776f 100644 (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)