Skip to content

Commit 9c70ad2

Browse files
committed
fix windows test
1 parent 557119f commit 9c70ad2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/ccall.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,12 +1969,13 @@ let llvm = sprint(code_llvm, world_counter, ())
19691969
end
19701970

19711971
function gc_safe_ccall()
1972-
@ccall gc_safe=true sleep(1::Cint)::Cvoid
1972+
# jl_rand is marked as JL_NOTSAFEPOINT
1973+
@ccall gc_safe=true jl_rand()::UInt64
19731974
end
19741975

19751976
let llvm = sprint(code_llvm, gc_safe_ccall, ())
19761977
# check that the call works
1977-
@test gc_safe_ccall() isa Nothing
1978+
@test gc_safe_ccall() isa UInt64
19781979
# check for the gc_safe store
19791980
@test occursin("store atomic i8 2", llvm)
19801981
end

0 commit comments

Comments
 (0)