ruby-changes:58267
From: Takashi <ko1@a...>
Date: Wed, 16 Oct 2019 14:47:55 +0900 (JST)
Subject: [ruby-changes:58267] 4ccb49bad3 (master): Enforce --jit-debug test by another way
https://git.ruby-lang.org/ruby.git/commit/?id=4ccb49bad3 From 4ccb49bad31b3c4a9cc7c6138cae93bd60a7bec4 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Tue, 15 Oct 2019 22:47:20 -0700 Subject: Enforce --jit-debug test by another way diff --git a/.travis.yml b/.travis.yml index 396b552..42965bf 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,10 +59,6 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L59 - &make-test-only script: - $SETARCH make -s test TESTOPTS="${TESTOPTS=$JOBS -q --tty=no}" - - |- # allow extra test-all if specified - if [ -n $TEST_ALL_TESTS ]; then - $SETARCH make -s test-all -o exts TESTOPTS="${TESTOPTS} ${TEST_ALL_OPTS}" TESTS="$TEST_ALL_TESTS" RUBYOPT="-w" - fi - &gcc-8 compiler: gcc-8 @@ -146,8 +142,6 @@ env: https://github.com/ruby/ruby/blob/trunk/.travis.yml#L142 <<: *make-test-only env: - GEMS_FOR_TEST= - - TEST_MJIT_SYMBOLS=1 - - TEST_ALL_TESTS=../test/ruby/test_jit.rb - cppflags='-DRUBY_DEBUG -DVM_CHECK_MODE=1 -DTRANSIENT_HEAP_CHECK_MODE -DRGENGC_CHECK_MODE -DENC_DEBUG' - &VM_CHECK_MODE diff --git a/test/lib/jit_support.rb b/test/lib/jit_support.rb index fc5c12e..bab1d4e 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -30,7 +30,7 @@ module JITSupport https://github.com/ruby/ruby/blob/trunk/test/lib/jit_support.rb#L30 ] args << '--jit-wait' if wait args << '--jit-save-temps' if save_temps - args << '--jit-debug' if ENV['TEST_MJIT_SYMBOLS'] == '1' + args << '--jit-debug' if defined?(@jit_debug) && @jit_debug args << '-e' << script base_env = { 'MJIT_SEARCH_BUILD_DIR' => 'true' } # workaround to skip requiring `make install` for `make test-all` if preloadenv = RbConfig::CONFIG['PRELOADENV'] and !preloadenv.empty? diff --git a/test/ruby/test_jit_debug.rb b/test/ruby/test_jit_debug.rb new file mode 100644 index 0000000..8f4386c --- /dev/null +++ b/test/ruby/test_jit_debug.rb @@ -0,0 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_jit_debug.rb#L1 +require_relative 'test_jit' + +class TestJITDebug < TestJIT + def setup + # let `#eval_with_jit` use --jit-debug + @jit_debug = true + end +end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/