File: fopen-fail

package info (click to toggle)
make-doc-non-dfsg 4.0-2
  • links: PTS, VCS
  • area: non-free
  • in suites: jessie, jessie-kfreebsd
  • size: 7,460 kB
  • ctags: 2,038
  • sloc: ansic: 26,371; sh: 4,962; perl: 1,135; makefile: 168; lisp: 26; sed: 16
file content (15 lines) | stat: -rw-r--r-- 457 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#                                                                    -*-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.

run_make_test(q!
include $(lastword $(MAKEFILE_LIST))
!,
              '', undef, 512);

1;