[SV 27374] Fatal immediately on unrecoverable fopen() errors.

This commit is contained in:
Paul Smith
2013-09-15 16:41:42 -04:00
parent a4d8444b59
commit 1b90248893
6 changed files with 74 additions and 29 deletions

View File

@@ -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;