diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-13 21:45:56 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-05-10 17:14:20 +0900 |
commit | 2d9bc3efe57fe0ec1a8171340c950fb98ca8c8f2 (patch) | |
tree | 497bb420e7e9ba043ffbab0c8348eb96d4af0d2a /test | |
parent | 0e5aecea11d6d214bf578edfbbdb126ceb4762cb (diff) | |
download | ruby-2d9bc3efe57fe0ec1a8171340c950fb98ca8c8f2.tar.gz |
[Bug #19597] Freeze script name
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_process.rb | 5 |
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") |