From 467115baae38eba41b3800b4e0e84afb7f3ec99b Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 12 Jun 2005 22:22:07 +0000 Subject: Fix Savannah bug # 1328: if stdout is redirected to a full filesystem, we check for this and exit with an error. The closeout.c version from gnulib pulls in too much other stuff, and gnulib requires an ANSI C 89 compliant compiler, while GNU make (so far) still wants to work on K&R. --- tests/ChangeLog | 5 +++++ tests/scripts/misc/close_stdout | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 tests/scripts/misc/close_stdout (limited to 'tests') diff --git a/tests/ChangeLog b/tests/ChangeLog index ffb3fe0..2e22195 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2005-06-12 Paul D. Smith + + * scripts/misc/close_stdout: Add a test for Savannah bug #1328. + This test only works on systems that have /dev/full (e.g., Linux). + 2005-06-09 Paul D. Smith * scripts/functions/foreach: Add a test for Savannah bug #11913. diff --git a/tests/scripts/misc/close_stdout b/tests/scripts/misc/close_stdout new file mode 100644 index 0000000..688942e --- /dev/null +++ b/tests/scripts/misc/close_stdout @@ -0,0 +1,9 @@ +# -*-perl-*- + +$description = "Make sure make exits with an error if stdout is full."; + +if (-e '/dev/full') { + run_make_test('', '-v > /dev/full', '#MAKE#: write error', 256); +} + +1; -- cgit v1.2.3