Debian Codegraph @

tests/scripts/misc/fopen-fail

raw
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 if ($ENV{TRAVIS}) {
14 1/0
15 }
16 return -1;
17 run_make_test(q!
18 include $(lastword $(MAKEFILE_LIST))
19 !,
20 '', undef, 512, 300);
21
22 1;