Skip to content

Commit da8b131

Browse files
committed
Skip tests which do not work on TruffleRuby
1 parent 28aca5b commit da8b131

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

Rakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@ desc 'Run all tests'
66
Rake::TestTask.new(:test) do |t|
77
t.libs << 'test'
88
t.libs << 'lib'
9-
t.test_files = FileList['test/**/*_test.rb']
9+
test_files = FileList['test/**/*_test.rb']
10+
if RUBY_ENGINE == 'truffleruby'
11+
# rmagick segfaults on truffleruby 25.0.0
12+
test_files -= ['test/graph_renderer_test.rb']
13+
end
14+
t.test_files = test_files
1015
t.verbose = true
1116
t.warning = true
1217
end

test/benchmark_runner_cli_test.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@
3333

3434
# Helper method to create args directly without parsing
3535
def create_args(overrides = {})
36+
if RUBY_ENGINE == 'truffleruby'
37+
executables = { 'truffleruby' => [RbConfig.ruby] }
38+
else
39+
executables = { 'interp' => [RbConfig.ruby], 'yjit' => [RbConfig.ruby, '--yjit'] }
40+
end
3641
defaults = {
37-
executables: { 'interp' => [RbConfig.ruby], 'yjit' => [RbConfig.ruby, '--yjit'] },
42+
executables: executables,
3843
out_path: nil,
3944
out_override: nil,
4045
harness: 'harness',

test/benchmark_runner_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,7 @@
497497

498498
describe '.render_graph' do
499499
it 'delegates to GraphRenderer and returns calculated png_path' do
500+
skip 'rmagick segfaults on truffleruby 25.0.0' if RUBY_ENGINE == 'truffleruby'
500501
Dir.mktmpdir do |dir|
501502
json_path = File.join(dir, 'test.json')
502503
expected_png_path = File.join(dir, 'test.png')

0 commit comments

Comments
 (0)