ruby-changes:61374
From: Koichi <ko1@a...>
Date: Tue, 26 May 2020 04:56:05 +0900 (JST)
Subject: [ruby-changes:61374] c9fe4ebd29 (master): cause SEGV for the test.
https://git.ruby-lang.org/ruby.git/commit/?id=c9fe4ebd29 From c9fe4ebd29f71805648a048d2cc431c94039ceaa Mon Sep 17 00:00:00 2001 From: Koichi Sasada <ko1@a...> Date: Tue, 26 May 2020 04:49:11 +0900 Subject: cause SEGV for the test. 21991e6ca5 enables `__builtin_assume()` for clang and it seems skip SEGV on rb_class_of() with unexpected value. This test expects a [BUG] output, so this patch causes [BUG] to show [BUG] message. https://github.com/ruby/ruby/runs/707088232?check_suite_focus=true#step:12:230 ``` 1) Failure: TestVMDump#test_darwin_invalid_access [/Users/runner/runners/2.262.1/work/ruby/ruby/src/test/ruby/test_vm_dump.rb:19]: pid 43128 exit 0. 1. [2/2] Assertion for "stderr" | Expected /^\[IMPORTANT\]/ to match "". ``` diff --git a/test/ruby/test_vm_dump.rb b/test/ruby/test_vm_dump.rb index 68f0fa7..679ce94 100644 --- a/test/ruby/test_vm_dump.rb +++ b/test/ruby/test_vm_dump.rb @@ -16,6 +16,6 @@ class TestVMDump < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_vm_dump.rb#L16 end def test_darwin_invalid_access - assert_darwin_vm_dump_works(['-rfiddle', '-eFiddle.dlunwrap(100).class']) + assert_darwin_vm_dump_works(['-rfiddle', '-eFiddle.dlunwrap(100).inspect']) end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/