]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* tests/scripts/misc/fopen-fail: [SV 42390] Increase test timeout.
authorPaul Smith <psmith@gnu.org>
Sun, 12 Jul 2015 22:05:50 +0000 (18:05 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 12 Jul 2015 22:19:01 +0000 (18:19 -0400)
* Makefile.am (check-regression): Force ulimit -n for fopen-fail test.

Makefile.am
tests/scripts/misc/fopen-fail

index d2451b886fbd7706dcd9f17e977a195a511eef95..958f37b647a4f2d10699b00897b5a4ccd12a3817 100644 (file)
@@ -126,8 +126,8 @@ guile.$(OBJEXT): gmk-default.h
 gmk-default.h: $(srcdir)/gmk-default.scm
        (echo 'static const char *const GUILE_module_defn = " '\\ \
          && sed -e 's/;.*//' -e '/^[ \t]*$$/d' -e 's/"/\\"/g' -e 's/$$/ \\/' \
-                $(srcdir)/gmk-default.scm \
-          && echo '";') > $@
+                $(srcdir)/gmk-default.scm \
+         && echo '";') > $@
 
 # --------------- Local DIST Section
 
@@ -175,6 +175,7 @@ MAKETESTFLAGS =
 
 check-regression: tests/config-flags.pm
        @if test -f '$(srcdir)/tests/run_make_tests'; then \
+         ulimit -n 128; \
          if $(PERL) -v >/dev/null 2>&1; then \
            case `cd '$(srcdir)'; pwd` in `pwd`) : ;; \
              *) test -d tests || mkdir tests; \
@@ -189,9 +190,9 @@ check-regression: tests/config-flags.pm
          else \
            echo "Can't find a working Perl ($(PERL)); the test suite requires Perl."; \
          fi; \
-        else \
+       else \
          echo "Can't find the GNU Make test suite ($(srcdir)/tests)."; \
-        fi
+       fi
 
 
 # --------------- Maintainer's Section
index 6580e5198a64b6d16d1e1f20d224c9d817e44ba0..2ec9810b8f4bd747491cec6b4bca42058c021076 100644 (file)
@@ -7,9 +7,12 @@ $description = "Make sure make exits with an error if fopen fails.";
 # 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);
+              '', undef, 512, 300);
 
 1;