summaryrefslogtreecommitdiff
path: root/tests/scripts
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-15 17:09:01 -0400
committerPaul Smith <psmith@gnu.org>2013-09-15 17:09:01 -0400
commit56cda02328a8b3c0529d1c277a9e12e59b1a676c (patch)
tree88312b516ca64a727dffcbe87bf9aec3674e7a92 /tests/scripts
parentcd92db36736b7ce7ed71e4dfad7de3e957c24ef2 (diff)
downloadmake-56cda02328a8b3c0529d1c277a9e12e59b1a676c.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 00000000..6580e519
--- /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;