2013-09-15 20:41:42 +00:00
|
|
|
# -*-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.
|
|
|
|
|
2015-07-12 22:05:50 +00:00
|
|
|
# Use a longer-than-normal timeout: some systems have more FDs available?
|
|
|
|
# We also set ulimit -n 512 in check-regression in Makefile.am, which see.
|
|
|
|
# See Savannah bug #42390.
|
2013-09-15 20:41:42 +00:00
|
|
|
run_make_test(q!
|
|
|
|
include $(lastword $(MAKEFILE_LIST))
|
|
|
|
!,
|
2015-07-12 22:05:50 +00:00
|
|
|
'', undef, 512, 300);
|
2013-09-15 20:41:42 +00:00
|
|
|
|
|
|
|
1;
|