Skip to content

Commit

Permalink
Remote include tests close io streams
Browse files Browse the repository at this point in the history
  • Loading branch information
Gollor committed May 13, 2017
1 parent 2379294 commit 7ff6322
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/distributed_exec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,9 @@ end

@test let
# creates a new worker in the same folder and tries to include file
tmp_file = relpath(mktemp()[1])
tmp_file, temp_file_stream = mktemp()
close(temp_file_stream)
tmp_file = relpath(tmp_file)
try
proc = addprocs_with_testenv(1)
include(tmp_file)
Expand All @@ -1588,7 +1590,9 @@ end == true

@test let
# creates a new worker in the different folder and tries to include file
tmp_file = relpath(mktemp()[1])
tmp_file, temp_file_stream = mktemp()
close(temp_file_stream)
tmp_file = relpath(tmp_file)
tmp_dir = relpath(mktempdir())
try
proc = addprocs_with_testenv(1, dir=tmp_dir)
Expand Down

0 comments on commit 7ff6322

Please sign in to comment.