Skip to content

Commit 0b04542

Browse files
committed
don't need tmpdir for hello world mtest
1 parent 19b75a7 commit 0b04542

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

mrblib/setup.rb

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -74,19 +74,14 @@ def test_main
7474
def bintest
7575
<<BINTEST
7676
require 'open3'
77-
require 'tmpdir'
7877
7978
BIN_PATH = File.join(File.dirname(__FILE__), "../mruby/bin/#{@name}")
8079
8180
assert('setup') do
82-
Dir.mktmpdir do |tmp_dir|
83-
Dir.chdir(tmp_dir) do
84-
output, status = Open3.capture2("\#{BIN_PATH}")
81+
output, status = Open3.capture2("\#{BIN_PATH}")
8582
86-
assert_true status.success?, "Process did not exit cleanly"
87-
assert_include output, "Hello World"
88-
end
89-
end
83+
assert_true status.success?, "Process did not exit cleanly"
84+
assert_include output, "Hello World"
9085
end
9186
BINTEST
9287
end

0 commit comments

Comments
 (0)