Skip to content

Commit

Permalink
make testable under windows 3
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausC committed Jan 22, 2020
1 parent ed16784 commit 32a8b0d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/libc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if Sys.isunix() && get(Base.ENV, "NO_CLOCALE", "") != "1"
ccall(:nl_langinfo_l, Ptr{UInt8}, (Cint, CLocaleType), nlitem, ploc)
end

else # for the non-unix case provide dummy methods
else # for the non case provide dummy methods

newlocale_c(mask::Cint, clocale::AbstractString, base::CLocaleType) = CL0
duplocale(ploc::CLocaleType) = CL0
Expand Down
4 changes: 2 additions & 2 deletions test/libc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import .CLocales: newlocale_c, strcoll_c, nl_langinfo_c

const P0 = Ptr{Nothing}(0)

if Sys.isunix() && get(Base.ENV, "NO_CLOCALE", "") != "1"
if Sys.islinux() && get(Base.ENV, "NO_CLOCALE", "") != "1"

@test newlocale_c(LC._MASK_ALL, "invalidxxx", P0) == P0
@test newlocale_c(LC._MASK_ALL, "en_US.utf8", P0) != P0
Expand Down Expand Up @@ -41,5 +41,5 @@ end

@test freelocale(test_locale_ca) == nothing
freelocale(test_locale_C)
end # isunix
end
#################################

0 comments on commit 32a8b0d

Please sign in to comment.