summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-15 16:41:42 -0400
committerPaul Smith <psmith@gnu.org>2013-09-15 17:09:01 -0400
commit1b9024889384fc26d296ee4340ffca32e8c73017 (patch)
tree88312b516ca64a727dffcbe87bf9aec3674e7a92 /tests/scripts
parenta4d8444b594e53b13659a9f2c64424418f255e27 (diff)
downloadgunmake-1b9024889384fc26d296ee4340ffca32e8c73017.tar.gz
[SV 27374] Fatal immediately on unrecoverable fopen() errors.
Diffstat (limited to 'tests/scripts')
-rw-r--r--tests/scripts/misc/fopen-fail15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/scripts/misc/fopen-fail b/tests/scripts/misc/fopen-fail
new file mode 100644
index 0000000..6580e51
--- /dev/null
+++ b/tests/scripts/misc/fopen-fail
@@ -0,0 +1,15 @@
+# -*-perl-*-
+
+$description = "Make sure make exits with an error if fopen fails.";
+
+# Recurse infinitely until we run out of open files, and ensure we
+# fail with a non-zero exit code. Don't bother to test the output
+# since it's hard to know what it will be, exactly.
+# See Savannah bug #27374.
+
+run_make_test(q!
+include $(lastword $(MAKEFILE_LIST))
+!,
+ '', undef, 512);
+
+1;