summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-13 21:45:56 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-10 17:14:20 +0900
commit2d9bc3efe57fe0ec1a8171340c950fb98ca8c8f2 (patch)
tree497bb420e7e9ba043ffbab0c8348eb96d4af0d2a /test
parent0e5aecea11d6d214bf578edfbbdb126ceb4762cb (diff)
downloadruby-2d9bc3efe57fe0ec1a8171340c950fb98ca8c8f2.tar.gz
[Bug #19597] Freeze script name
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_process.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index a259764041..66624644e9 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -1424,6 +1424,11 @@ class TestProcess < Test::Unit::TestCase
REPRO
end
+ def test_argv0_frozen
+ assert_predicate Process.argv0, :frozen?
+ assert_predicate $0, :frozen?
+ end
+
def test_status
with_tmpchdir do
s = run_in_child("exit 1")