Skip to content

Commit

Permalink
Merge pull request JuliaLang#11959 from JuliaLang/sjk/11948-test
Browse files Browse the repository at this point in the history
Add test for JuliaLang#11948
  • Loading branch information
tkelman committed Jul 2, 2015
2 parents 6f55437 + d120922 commit acc91ef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/choosetests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function choosetests(choices = [])
"replutil", "sets", "test", "goto", "llvmcall", "grisu",
"nullable", "meta", "profile", "libgit2", "docs", "markdown",
"base64", "parser", "serialize", "functors", "char", "misc",
"enums", "cmdlineargs", "i18n"
"enums", "cmdlineargs", "i18n", "workspace"
]

if Base.USE_GPL_LIBS
Expand Down
9 changes: 9 additions & 0 deletions test/workspace.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Issue #11948
script = """
f(x) = x+1
workspace()
@assert !isdefined(:f)
LastMain.f(2)
"""
exename = joinpath(JULIA_HOME, Base.julia_exename())
run(`$exename -f -e $script`)

0 comments on commit acc91ef

Please sign in to comment.