Skip to content

Commit

Permalink
work around JuliaIO/Blosc.jl#2 - disable compression tests on 32-bit …
Browse files Browse the repository at this point in the history
…windows
  • Loading branch information
stevengj committed Dec 18, 2014
1 parent 6b9b297 commit 02a737b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions test/jld.jl
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ typ{T}(x::Int64, ::Type{T}) = Base.box(Typ{T}, Base.unbox(Int64,x))
abstract UnexportedT
end

for compress in (true,false)
# work around stevengj/Blosc.jl#2
compressflags = OS_NAME==:Windows && WORD_SIZE==32 ? (false,) : (true,false)

for compress in compressflags
fnc = compress ? fn*".c" : fn # workaround #176
fid = jldopen(fnc, "w", compress=compress)
@write fid x
Expand Down Expand Up @@ -461,9 +464,9 @@ for compress in (true,false)

close(fidr)
end
end # compress in (true,false)
end # compress in compressflags

for compress in (false,true)
for compress in compressflags
# object references in a write session
x = ObjRefType()
a = [x, x]
Expand Down Expand Up @@ -595,7 +598,7 @@ for compress in (false,true)
@assert(!exists(file, "g"))
end

end # compress in (false,true)
end # compress in compressflags

# mismatched and missing types
module JLDTemp1
Expand Down

0 comments on commit 02a737b

Please sign in to comment.