Imported Upstream version 4.0
[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 run_make_test(q!
11 include $(lastword $(MAKEFILE_LIST))
12 !,
13               '', undef, 512);
14
15 1;