ruby-changes:50178
From: k0kubun <ko1@a...>
Date: Thu, 8 Feb 2018 01:57:05 +0900 (JST)
Subject: [ruby-changes:50178] k0kubun:r62296 (trunk): error.c: export rb_assert_failure
k0kubun 2018-02-08 01:56:59 +0900 (Thu, 08 Feb 2018) New Revision: 62296 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62296 Log: error.c: export rb_assert_failure to test JIT with `VM_CHECK_MODE=1` It's failing on CI which enables VM_CHECK_MODE. : 1) : TestJIT#test_jit [/home/ko1/ruby/src/trunk-vm-asserts/test/ruby/test_jit.rb:10]: : Expected 1 times of JIT success, but succeeded 0 times. : 2) : TestJIT#test_jit_output [/home/ko1/ruby/src/trunk-vm-asserts/test/ruby/test_jit.rb:18]: : Expected /^JIT success \(\d+\.\dms\): block in <main>@-e:1 -> .+_ruby_mjit_p\d+u\d+\.c$/ to match "MJIT warning: failure in loading code from '/tmp/_ruby_mjit_p9896u0.so': /tmp/_ruby_mjit Modified files: trunk/error.c Index: error.c =================================================================== --- error.c (revision 62295) +++ error.c (revision 62296) @@ -660,7 +660,7 @@ rb_report_bug_valist(VALUE file, int lin https://github.com/ruby/ruby/blob/trunk/error.c#L660 report_bug_valist(RSTRING_PTR(file), line, fmt, NULL, args); } -void +MJIT_FUNC_EXPORTED void rb_assert_failure(const char *file, int line, const char *name, const char *expr) { FILE *out = stderr; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/