summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Williams <[email protected]>2025-04-18 01:19:05 +0900
committer<[email protected]>2025-04-17 16:19:05 +0000
commit06a7b3c14453b35ff530b3a06c134193dc25207e ()
treebc285cedb4abf103ae4ddeee9e439344a8386be0
parentc4ae6cb5005cfa53be0af466a5619e7455c15744 (diff)
Only test on known good platforms. (#13123)
Notes: Merged-By: ioquatix <[email protected]>
-rw-r--r--ext/-test-/stack/stack.c11
-rw-r--r--test/-ext-/stack/test_stack_overflow.rb14
2 files changed, 19 insertions, 6 deletions
@@ -17,8 +17,19 @@ stack_alloca_overflow(VALUE self)
return Qnil;
}
void
Init_stack(VALUE klass)
{
rb_define_singleton_method(rb_cThread, "alloca_overflow", stack_alloca_overflow, 0);
}
@@ -2,9 +2,15 @@
require 'test/unit'
class Test_StackOverflow < Test::Unit::TestCase
- def test_proc_overflow
- omit("Windows stack overflow handling is missing") if RUBY_PLATFORM =~ /mswin|win32|mingw/
assert_separately([], <<~RUBY)
# GC may try to scan the top of the stack and cause a SEGV.
GC.disable
@@ -17,8 +23,6 @@ class Test_StackOverflow < Test::Unit::TestCase
end
def test_thread_stack_overflow
- omit("Windows stack overflow handling is missing") if RUBY_PLATFORM =~ /mswin|win32|mingw/
-
assert_separately([], <<~RUBY)
require '-test-/stack'
GC.disable
@@ -35,8 +39,6 @@ class Test_StackOverflow < Test::Unit::TestCase
end
def test_fiber_stack_overflow
- omit("Windows stack overflow handling is missing") if RUBY_PLATFORM =~ /mswin|win32|mingw/
-
assert_separately([], <<~RUBY)
require '-test-/stack'
GC.disable