Blame tests/scripts/misc/fopen-fail
|
Packit |
26a39e |
# -*-perl-*-
|
|
Packit |
26a39e |
|
|
Packit |
26a39e |
$description = "Make sure make exits with an error if fopen fails.";
|
|
Packit |
26a39e |
|
|
Packit |
26a39e |
# Recurse infinitely until we run out of open files, and ensure we
|
|
Packit |
26a39e |
# fail with a non-zero exit code. Don't bother to test the output
|
|
Packit |
26a39e |
# since it's hard to know what it will be, exactly.
|
|
Packit |
26a39e |
# See Savannah bug #27374.
|
|
Packit |
26a39e |
|
|
Packit |
26a39e |
# Use a longer-than-normal timeout: some systems have more FDs available?
|
|
Packit |
26a39e |
# We also set ulimit -n 512 in check-regression in Makefile.am, which see.
|
|
Packit |
26a39e |
# See Savannah bug #42390.
|
|
Packit |
26a39e |
run_make_test(q!
|
|
Packit |
26a39e |
include $(lastword $(MAKEFILE_LIST))
|
|
Packit |
26a39e |
!,
|
|
Packit |
26a39e |
'', undef, 512, 300);
|
|
Packit |
26a39e |
|
|
Packit |
26a39e |
1;
|