Skip to content

Commit 2a2bb9e

Browse files
committed
Use echo instead of env for Windows
1 parent 9e81252 commit 2a2bb9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/stdlib/Open3_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def test_popen2
4343
assert_send_type "(*::String) -> [ ::IO, ::IO, ::Process::Waiter ]",
4444
Open3, :popen2, 'echo "Foo"'
4545
assert_send_type "(*::String, unsetenv_others: bool) -> [ ::IO, ::IO, ::Process::Waiter ]",
46-
Open3, :popen2, 'env', unsetenv_others: true
46+
Open3, :popen2, 'echo "Foo"', unsetenv_others: true
4747
assert_send_type "(*::String, close_others: bool) -> [ ::IO, ::IO, ::Process::Waiter ]",
48-
Open3, :popen2, 'env', close_others: true
48+
Open3, :popen2, 'echo "Foo"', close_others: true
4949
assert_send_type "(*::String, chdir: ::String) -> [ ::IO, ::IO, ::Process::Waiter ]",
5050
Open3, :popen2, 'echo "Foo"', chdir: '.'
5151
assert_send_type "(::Hash[::String, ::String], ::String) -> [ ::IO, ::IO, ::Process::Waiter ]",
@@ -61,9 +61,9 @@ def test_popen3
6161
assert_send_type "(::String) -> [ ::IO, ::IO, ::IO, ::Process::Waiter ]",
6262
Open3, :popen3, 'echo "Foo"'
6363
assert_send_type "(::String, unsetenv_others: bool) -> [ ::IO, ::IO, ::IO, ::Process::Waiter ]",
64-
Open3, :popen3, 'env', unsetenv_others: true
64+
Open3, :popen3, 'echo "Foo"', unsetenv_others: true
6565
assert_send_type "(::String, close_others: bool) -> [ ::IO, ::IO, ::IO, ::Process::Waiter ]",
66-
Open3, :popen3, 'env', close_others: true
66+
Open3, :popen3, 'echo "Foo"', close_others: true
6767
assert_send_type "(::String, chdir: ::String) -> [ ::IO, ::IO, ::IO, ::Process::Waiter ]",
6868
Open3, :popen3, 'echo "Foo"', chdir: '.'
6969
assert_send_type "(::Hash[::String, ::String], ::String) -> [ ::IO, ::IO, ::IO, ::Process::Waiter ]",

0 commit comments

Comments
 (0)