Skip to content

Let us run make btest #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bootstraptest/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -720,4 +720,8 @@ def check_coredump
end
end

def mmtk?
`#{BT.ruby} -e 'p defined?(GC::MMTk)'`.strip == '"constant"'
end

exit main
2 changes: 2 additions & 0 deletions bootstraptest/test_ractor.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
return if mmtk?

# Ractor.current returns a current ractor
assert_equal 'Ractor', %q{
Ractor.current.class
Expand Down
2 changes: 2 additions & 0 deletions bootstraptest/test_thread.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
return if mmtk?

show_limit %q{
threads = []
begin
Expand Down
2 changes: 2 additions & 0 deletions bootstraptest/test_yjit.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
return if mmtk?

assert_equal 'true', %q{
# regression test for tracking type of locals for too long
def local_setting_cmp(five)
Expand Down
2 changes: 2 additions & 0 deletions bootstraptest/test_yjit_30k_ifelse.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
return if mmtk?

# This is a torture test for the JIT.
# There are 30K tiny methods with if-else statements in a 30-deep call hierarchy.
assert_equal '100000', %q{
Expand Down
2 changes: 2 additions & 0 deletions bootstraptest/test_yjit_30k_methods.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
return if mmtk?

# This is a torture test for the JIT.
# There are 30K tiny methods in a 30-deep call hierarchy.
assert_equal '1000000', %q{
Expand Down
2 changes: 2 additions & 0 deletions bootstraptest/test_yjit_rust_port.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
return if mmtk?

# Simple tests that we know we can pass
# To keep track of what we got working during the Rust port
# And avoid breaking/losing functionality
Expand Down