fix incorrect folder name for julia-0.6.x
Former-commit-id: ef2c7401e0876f22d2f7762d182cfbcd5a7d9c70
This commit is contained in:
17
julia-0.6.3/share/julia/test/test_sourcepath.jl
Normal file
17
julia-0.6.3/share/julia/test/test_sourcepath.jl
Normal file
@@ -0,0 +1,17 @@
|
||||
# This file is a part of Julia. License is MIT: https://julialang.org/license
|
||||
|
||||
# source path in tasks
|
||||
path = Base.source_path()::String # this variable is leaked to the source script
|
||||
@test endswith(path, joinpath("test","test_sourcepath.jl"))
|
||||
@test let ct = current_task()
|
||||
yieldto(@task yieldto(ct, Base.source_path()))
|
||||
end == path
|
||||
@test let ct = current_task()
|
||||
yieldto(@task schedule(ct, Base.source_path()))
|
||||
end == path
|
||||
@test let ct = current_task(), t = @task Base.source_path()
|
||||
schedule(ct)
|
||||
yieldto(t)
|
||||
wait(t)
|
||||
end == path
|
||||
@test isabspath(@__FILE__)
|
||||
Reference in New Issue
Block a user