[前][次][番号順一覧][スレッド一覧]

ruby-changes:60794

From: Nobuyoshi <ko1@a...>
Date: Thu, 16 Apr 2020 23:40:37 +0900 (JST)
Subject: [ruby-changes:60794] 33aaa2aa15 (master): Added test for invalid env exec option

https://git.ruby-lang.org/ruby.git/commit/?id=33aaa2aa15

From 33aaa2aa15980f8ac0f330fc817f179e46daed55 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Thu, 16 Apr 2020 18:47:04 +0900
Subject: Added test for invalid env exec option


diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index a5eb0a5..e9c7ee6 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -338,6 +338,10 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L338
     ensure
       ENV["hmm"] = old
     end
+
+    assert_raise_with_message(ArgumentError, /fo=fo/) {
+      system({"fo=fo"=>"ha"}, *ENVCOMMAND)
+    }
   end
 
   def test_execopt_env_path
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]