diff --git a/Project.toml b/Project.toml index 2a96fdd4..19f30022 100644 --- a/Project.toml +++ b/Project.toml @@ -12,7 +12,8 @@ UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" Dates = "ade2ca70-3891-5945-98fb-dc099432e06a" Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" +SHA = "ea8e919c-243c-51af-8825-aaa63cd721ce" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["Test", "Distributed", "Random", "Dates"] +test = ["Test", "Distributed", "Random", "Dates", "SHA"] diff --git a/test/utils.jl b/test/utils.jl index da631aa9..fc78fa12 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -4,7 +4,7 @@ using JuliaInterpreter: finish_and_return!, @lookup, evaluate_call!, _step_expr! do_assignment!, getlhs, isassign, pc_expr, handle_err, get_return, moduleof, prepare_thunk using Base.Meta: isexpr -using Test, Random +using Test, Random, SHA # Execute a frame using Julia's regular compiled-code dispatch for any :call expressions runframe(frame, pc=frame.pc[]) = Some{Any}(finish_and_return!(Compiled(), frame, pc)) @@ -157,6 +157,8 @@ function configure_test() push!(cm, which(Base.include, Tuple{Module, String})) push!(cm, which(Base.show_backtrace, Tuple{IO, Vector})) push!(cm, which(Base.show_backtrace, Tuple{IO, Vector{Any}})) + # issue #101 + push!(cm, which(SHA.update!, Tuple{SHA.SHA1_CTX,Vector{UInt8}})) end function run_test_by_eval(test, fullpath, nstmts)