diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-16 18:47:04 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-16 20:38:11 +0900 |
commit | 33aaa2aa15980f8ac0f330fc817f179e46daed55 (patch) | |
tree | aa3b756ba334a78c2d791106a163bb53580eae1c /test/ruby/test_process.rb | |
parent | 693378f1051b6f32b1f4079b9133fb37a401b738 (diff) |
Added test for invalid env exec option
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index a5eb0a5844..e9c7ee62b2 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -338,6 +338,10 @@ class TestProcess < Test::Unit::TestCase ensure ENV["hmm"] = old end + + assert_raise_with_message(ArgumentError, /fo=fo/) { + system({"fo=fo"=>"ha"}, *ENVCOMMAND) + } end def test_execopt_env_path |