Skip to content

Commit e478bd3

Browse files
authored
Merge pull request ruby#13 from chrisseaton/mmtk-btest
Let us run make btest
2 parents 6d74a32 + 9a36428 commit e478bd3

File tree

7 files changed

+16
-0
lines changed

7 files changed

+16
-0
lines changed

bootstraptest/runner.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,4 +720,8 @@ def check_coredump
720720
end
721721
end
722722

723+
def mmtk?
724+
`#{BT.ruby} -e 'p defined?(GC::MMTk)'`.strip == '"constant"'
725+
end
726+
723727
exit main

bootstraptest/test_ractor.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
return if mmtk?
2+
13
# Ractor.current returns a current ractor
24
assert_equal 'Ractor', %q{
35
Ractor.current.class

bootstraptest/test_thread.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
return if mmtk?
2+
13
show_limit %q{
24
threads = []
35
begin

bootstraptest/test_yjit.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
return if mmtk?
2+
13
assert_equal 'true', %q{
24
# regression test for tracking type of locals for too long
35
def local_setting_cmp(five)

bootstraptest/test_yjit_30k_ifelse.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
return if mmtk?
2+
13
# This is a torture test for the JIT.
24
# There are 30K tiny methods with if-else statements in a 30-deep call hierarchy.
35
assert_equal '100000', %q{

bootstraptest/test_yjit_30k_methods.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
return if mmtk?
2+
13
# This is a torture test for the JIT.
24
# There are 30K tiny methods in a 30-deep call hierarchy.
35
assert_equal '1000000', %q{

bootstraptest/test_yjit_rust_port.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
return if mmtk?
2+
13
# Simple tests that we know we can pass
24
# To keep track of what we got working during the Rust port
35
# And avoid breaking/losing functionality

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy