Revision 18e864b8283c2686c254973d8f77a59287104167 authored by Jan Weidner on 04 April 2017, 12:08:24 UTC, committed by Tim Holy on 04 April 2017, 12:08:24 UTC
1 parent e796e39
test_sourcepath.jl
# This file is a part of Julia. License is MIT: http://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__)
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...