From e15597c3e85dedc015ff923a88febd46a1551f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20THIERRY?= Date: Wed, 5 Nov 2014 08:27:15 +0100 Subject: Imported Upstream version 4.0 --- tests/scripts/misc/fopen-fail | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/scripts/misc/fopen-fail (limited to 'tests/scripts/misc/fopen-fail') 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