Skip to content

Commit 538468c

Browse files
committed
Disable broken tests on Windows
1 parent fe878d0 commit 538468c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ env:
1515
before_install:
1616
- sh ./conf/travis-install-mpi.sh $MPI_IMPL
1717
- export PATH=$HOME/OpenMPI/bin:$HOME/MPICH/bin:$PATH
18+
- export CC=mpicc
19+
- export FC=mpif90
1820
# Work around OpenMPI attempting to create overly long temporary
1921
# file names - and erroring as a result
2022
- export TMPDIR=/tmp

test/runtests.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ juliafiles = ["test_cman_julia.jl"]
2020
# Files to run with mpiexec -n 1
2121
singlefiles = ["test_spawn.jl"]
2222

23+
excludedfiles = []
24+
if is_windows()
25+
excludedfiles = ["test_info.jl", "test_onesided.jl"]
26+
if Sys.WORD_SIZE == 32
27+
push!(excludedfiles, "test_spawn.jl")
28+
end
29+
end
30+
2331
function runtests()
2432
nprocs = clamp(Sys.CPU_CORES, 2, 4)
2533
exename = joinpath(BINDIR, Base.julia_exename())
@@ -37,6 +45,10 @@ function runtests()
3745
nfail = 0
3846
print_with_color(:white, "Running MPI.jl tests\n")
3947
for f in testfiles
48+
if f excludedfiles
49+
println("Skipping disabled test $f")
50+
continue
51+
end
4052
try
4153
coverage_opt = coverage_opts[Base.JLOptions().code_coverage]
4254
if f singlefiles

0 commit comments

Comments
 (0)