Skip to content

Commit

Permalink
Hack: don't force bounds checking when running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Oct 10, 2016
1 parent 3dcd595 commit 3a740f8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ script:
/tmp/julia/bin/julia-debug --precompiled=no -e 'true'
- /tmp/julia/bin/julia -e 'versioninfo()'
- export JULIA_CPU_CORES=2 && export JULIA_TEST_MAXRSS_MB=600 && cd /tmp/julia/share/julia/test &&
/tmp/julia/bin/julia --check-bounds=yes runtests.jl $TESTSTORUN &&
/tmp/julia/bin/julia --check-bounds=yes runtests.jl libgit2-online pkg
/tmp/julia/bin/julia runtests.jl $TESTSTORUN &&
/tmp/julia/bin/julia runtests.jl libgit2-online pkg
- cd `dirname $TRAVIS_BUILD_DIR` && mv julia2 julia &&
rm -rf julia/deps/scratch/julia-env &&
rm -f julia/deps/scratch/libgit2-*/CMakeFiles/CMakeOutput.log
Expand Down
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ build_script:
test_script:
- usr\bin\julia -e "versioninfo()"
- usr\bin\julia --precompiled=no -e "true"
- cd test && ..\usr\bin\julia --check-bounds=yes runtests.jl all &&
..\usr\bin\julia --check-bounds=yes runtests.jl libgit2-online pkg
- cd test && ..\usr\bin\julia runtests.jl all &&
..\usr\bin\julia runtests.jl libgit2-online pkg
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TESTS = all linalg sparse unicode strings dates $(filter-out TestHelpers runtest
default: all

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

perf:
@$(MAKE) -C $(SRCDIR)/perf all
Expand Down
2 changes: 1 addition & 1 deletion test/boundscheck.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if !success(pipeline(cmd; stdout=STDOUT, stderr=STDERR))
error("boundscheck test failed, cmd : $cmd")
end

cmd = `$(Base.julia_cmd()) --check-bounds=yes --startup-file=no --depwarn=error boundscheck_exec.jl`
cmd = `$(Base.julia_cmd()) --startup-file=no --depwarn=error boundscheck_exec.jl`
if !success(pipeline(cmd; stdout=STDOUT, stderr=STDERR))
error("boundscheck test failed, cmd : $cmd")
end
Expand Down
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ end
if haskey(ENV, "JULIA_TEST_EXEFLAGS")
const test_exeflags = `$(Base.shell_split(ENV["JULIA_TEST_EXEFLAGS"]))`
else
const test_exeflags = `--check-bounds=yes --startup-file=no --depwarn=error`
const test_exeflags = `--startup-file=no --depwarn=error`
end

if haskey(ENV, "JULIA_TEST_EXENAME")
Expand Down

0 comments on commit 3a740f8

Please sign in to comment.