diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-16 20:40:19 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-04-16 20:50:07 +0900 |
commit | f57e2d7296fbdf09041bdb237c7423a12ef06621 (patch) | |
tree | ba7f869eaf2c23d2bd87dc26b5b2ca0d4aa77b14 /test/ruby | |
parent | 33aaa2aa15980f8ac0f330fc817f179e46daed55 (diff) | |
download | ruby-f57e2d7296fbdf09041bdb237c7423a12ef06621.tar.gz |
Preserve encoding in error message for invalid env exec option
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_process.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index e9c7ee62b2..7170e826d5 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -342,6 +342,9 @@ class TestProcess < Test::Unit::TestCase assert_raise_with_message(ArgumentError, /fo=fo/) { system({"fo=fo"=>"ha"}, *ENVCOMMAND) } + assert_raise_with_message(ArgumentError, /\u{30c0}=\u{30e1}/) { + system({"\u{30c0}=\u{30e1}"=>"ha"}, *ENVCOMMAND) + } end def test_execopt_env_path |