Skip to content

Commit

Permalink
ulimit the max open pipes during testing
Browse files Browse the repository at this point in the history
fix #19132
  • Loading branch information
vtjnash committed Nov 12, 2016
1 parent 42df52a commit 2984956
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,17 @@ TESTS = all linalg sparse unicode strings dates $(filter-out TestHelpers runtest

default: all

# set hard and soft limits for spawn fd-exhaustion test
ifeq ($(OS),WINNT)
ULIMIT_TEST=
else
ULIMIT_TEST=ulimit -n 256
endif

$(TESTS):
@cd $(SRCDIR) && $(call PRINT_JULIA, $(call spawn,$(JULIA_EXECUTABLE)) --check-bounds=yes --startup-file=no ./runtests.jl $@)
@cd $(SRCDIR) && \
$(ULIMIT_TEST) && \
$(call PRINT_JULIA, $(call spawn,$(JULIA_EXECUTABLE)) --check-bounds=yes --startup-file=no ./runtests.jl $@)

perf:
@$(MAKE) -C $(SRCDIR)/perf all
Expand Down

0 comments on commit 2984956

Please sign in to comment.