diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 762036a1635a08..d55496fb0561b5 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -1446,4 +1446,10 @@ def test_sh_env } end if File.executable?("/bin/sh") + def test_sh_exec + IO.popen("exec echo exexexec") {|f| + assert_equal("exexexec\n", f.read) + } + end if File.executable?("/bin/sh") + end