2ec9810b8f4bd747491cec6b4bca42058c021076
[platform/upstream/make.git] / tests / scripts / misc / fopen-fail
1 #                                                                    -*-perl-*-
2
3 $description = "Make sure make exits with an error if fopen fails.";
4
5 # Recurse infinitely until we run out of open files, and ensure we
6 # fail with a non-zero exit code.  Don't bother to test the output
7 # since it's hard to know what it will be, exactly.
8 # See Savannah bug #27374.
9
10 # Use a longer-than-normal timeout: some systems have more FDs available?
11 # We also set ulimit -n 512 in check-regression in Makefile.am, which see.
12 # See Savannah bug #42390.
13 run_make_test(q!
14 include $(lastword $(MAKEFILE_LIST))
15 !,
16               '', undef, 512, 300);
17
18 1;