From 1b9024889384fc26d296ee4340ffca32e8c73017 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Sun, 15 Sep 2013 16:41:42 -0400 Subject: [SV 27374] Fatal immediately on unrecoverable fopen() errors. --- tests/scripts/misc/fopen-fail | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/scripts/misc/fopen-fail (limited to 'tests/scripts') 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; -- cgit v1.2.3