mirror of
https://github.com/mirror/make.git
synced 2025-01-09 11:50:46 +08:00
cad3ddd165
The GNU platform testers reported a number of test errors on different systems; try to address them. * tests/thelp.pl: A number of tests timed out with a 4-second timeout. Increase the default timeout to 10 seconds. * tests/run_make_tests.pl: Executing directories on cygwin behaves differently in Perl than make so skip these tests there. * tests/scripts/options/symlinks: Check for the symlink feature in make, rather than whether the system supports them. * tests/scripts/features/implicit_search: On some systems "false" exits with a different exit code. Use the helper instead. * tests/scripts/features/loadapi: Ditto. * tests/scripts/features/output-sync: Sleep before make -f bar in the first test as well as the second one. * tests/scripts/features/exec: Skip on cygwin, which seems to be "UNIX" but where scripts don't run normally. * tests/scripts/misc/fopen-fail: Skip on cygwin, where make eventually exits with exit code 0 and no error messages.
23 lines
765 B
Perl
23 lines
765 B
Perl
# -*-perl-*-
|
|
|
|
$description = "Make sure make exits with an error if fopen fails.";
|
|
|
|
# For some reason on Cygwin, make exits with no error message after
|
|
# it recurses for a while.
|
|
$^O =~ /cygwin/ and return -1;
|
|
|
|
# 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.
|
|
|
|
# Use a longer-than-normal timeout: some systems have more FDs available?
|
|
# We also set ulimit -n 512 in check-regression in Makefile.am, which see.
|
|
# See Savannah bug #42390.
|
|
run_make_test(q!
|
|
include $(lastword $(MAKEFILE_LIST))
|
|
!,
|
|
'', undef, 512, 300);
|
|
|
|
1;
|