diff options
author | Takashi Kokubun <[email protected]> | 2019-10-15 22:47:20 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2019-10-15 22:47:20 -0700 |
commit | 4ccb49bad31b3c4a9cc7c6138cae93bd60a7bec4 (patch) | |
tree | 5125a6bf8cd10a85d5badc996f93af0354cf2a74 | |
parent | 759576a03f0a39f3190e79526d138adc3a3f0a62 (diff) |
Enforce --jit-debug test by another way
-rw-r--r-- | .travis.yml | 6 | ||||
-rw-r--r-- | test/lib/jit_support.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_jit_debug.rb | 8 |
3 files changed, 9 insertions, 7 deletions
diff --git a/.travis.yml b/.travis.yml index 396b552b49..42965bfbb9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -59,10 +59,6 @@ env: - &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: <<: *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 fc5c12e871..bab1d4e5c4 100644 --- a/test/lib/jit_support.rb +++ b/test/lib/jit_support.rb @@ -30,7 +30,7 @@ module JITSupport ] 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 0000000000..8f4386c398 --- /dev/null +++ b/test/ruby/test_jit_debug.rb @@ -0,0 +1,8 @@ +require_relative 'test_jit' + +class TestJITDebug < TestJIT + def setup + # let `#eval_with_jit` use --jit-debug + @jit_debug = true + end +end |