Skip to content
Open
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
3 changes: 3 additions & 0 deletions ext/-test-/file/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,9 @@ get_noatime_p(VALUE self, VALUE str)
void
Init_fs(VALUE module)
{
#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif
VALUE fs = rb_define_module_under(module, "Fs");
rb_define_module_function(fs, "fsname", get_fsname, 1);
rb_define_module_function(fs, "noatime?", get_noatime_p, 1);
Expand Down
3 changes: 3 additions & 0 deletions ext/-test-/integer/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
void
Init_integer(void)
{
#ifdef HAVE_RB_EXT_RACTOR_SAFE
rb_ext_ractor_safe(true);
#endif
VALUE mBug = rb_define_module("Bug");
VALUE klass = rb_define_class_under(mBug, "Integer", rb_cObject);
TEST_INIT_FUNCS(init);
Expand Down
4 changes: 4 additions & 0 deletions ext/-test-/iter/break.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ iter_break_value(VALUE self, VALUE val)
void
Init_break(VALUE klass)
{
#ifdef HAVE_RB_EXT_RACTOR_SAFE
// Mark this extension as Ractor-safe.
rb_ext_ractor_safe(true);
#endif
VALUE breakable = rb_define_module_under(klass, "Breakable");
rb_define_module_function(breakable, "iter_break", iter_break, 0);
rb_define_module_function(breakable, "iter_break_value", iter_break_value, 1);
Expand Down
5 changes: 5 additions & 0 deletions ext/-test-/iter/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
void
Init_iter(void)
{

#ifdef HAVE_RB_EXT_RACTOR_SAFE
// Mark this extension as Ractor-safe.
rb_ext_ractor_safe(true);
#endif
VALUE mBug = rb_define_module("Bug");
VALUE klass = rb_define_module_under(mBug, "Iter");
TEST_INIT_FUNCS(init);
Expand Down
5 changes: 5 additions & 0 deletions ext/-test-/iter/yield.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ yield_block(int argc, VALUE *argv, VALUE self)
void
Init_yield(VALUE klass)
{

#ifdef HAVE_RB_EXT_RACTOR_SAFE
// Mark this extension as Ractor-safe.
rb_ext_ractor_safe(true);
#endif
VALUE yield = rb_define_module_under(klass, "Yield");

rb_define_method(yield, "yield_block", yield_block, -1);
Expand Down
4 changes: 4 additions & 0 deletions ext/-test-/rb_call_super_kw/rb_call_super_kw.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ rb_call_super_kw_m(int argc, VALUE *argv, VALUE self)
void
Init_rb_call_super_kw(void)
{
#ifdef HAVE_RB_EXT_RACTOR_SAFE
// Mark this extension as Ractor-safe.
rb_ext_ractor_safe(true);
#endif
VALUE module = rb_define_module("Bug");
module = rb_define_module_under(module, "RbCallSuperKw");
rb_define_method(module, "m", rb_call_super_kw_m, -1);
Expand Down
3 changes: 3 additions & 0 deletions ext/-test-/stack/stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ asan_p(VALUE klass)
void
Init_stack(VALUE klass)
{
#ifdef HAVE_RB_EXT_RACTOR_SAFE
RB_EXT_RACTOR_SAFE(true);
#endif
rb_define_singleton_method(rb_cThread, "alloca_overflow", stack_alloca_overflow, 0);
rb_define_singleton_method(rb_cThread, "asan?", asan_p, 0);
}
27 changes: 27 additions & 0 deletions test/.excludes-ractor/Prism/TestCompilePrism.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Prism::TestCompilePrism#test_repeated_proc_params../ruby/st.c:2621: Assertion Failed: set_rebuild_table_with:new_tab->num_entries == tab->num_entries
exclude(/^test_/, "FIXME: bug. Skip all tests for now")

exclude(/^test_GlobalVariable/, "global variables")
exclude(:test_ClassVariableTargetNode, "class variables")
exclude(:test_ClassVariableAndWriteNode, "class variables")
exclude(:test_ClassVariableOperatorWriteNode, "class variables")
exclude(:test_ClassVariableOrWriteNode, "class variables")
exclude(:test_ClassVariableWriteNode, "class variables")
exclude(:test_ConstantWriteNode, "global side effects")
exclude(:test_InstanceVariableTargetNode, "class ivars")
exclude(:test_InstanceVariableReadNode, "class ivars")
exclude(:test_InstanceVariableWriteNode, "class ivars")
exclude(:test_EmbeddedVariableNode, "class ivars")
exclude(:test_InterpolatedMatchLastLineNode, "global variables")
exclude(:test_InterpolatedRegularExpressionNode, "global variables")
exclude(:test_InterpolatedStringNode, "global variables")
exclude(:test_InterpolatedSymbolNode, "global variables")
exclude(:test_AliasGlobalVariableNode, "global variables")
exclude(:test_ClassVariableReadNode, "class variables")
exclude(:test_ForNode_gvar, "gvars")
exclude(:test_PostExecutionNode_set_ivar, "set ivar of main")
exclude(:test_PinnedVariableNode_ractor_unsafe, "ractor incompatible")
exclude(:test_DefinedNode_ractor_unsafe, "ractor incompatible")
exclude(:test_ConstantPathOrWriteNode_ractor_unsafe, "ractor incompatible")
exclude(:test_ConstantPathOperatorWriteNode_ractor_unsafe, "ractor incompatible")
exclude(:test_IfNode_ractor_unsafe, "gvars")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/RubyVM.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude(:test_of_proc_and_method, "ractor incompatible")
exclude(:test_parse_file_raises_syntax_error, "ractor incompatible")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestAlias.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude(:test_alias_class_method_added, "class ivars")
exclude(:test_alias_module_method_added, "module ivars")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestAllocation.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "checks allocations in subprocess")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestArgf.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "ARGF is not shareable")
9 changes: 9 additions & 0 deletions test/.excludes-ractor/TestArray.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
exclude(/_with_callcc$/, "ractor incompatible")
exclude(:test_join, "Uses $,")
exclude(:test_to_s, "Uses $,")
exclude(:test_equal_resize, "global variables")
exclude(:test_replace_wb_variable_width_alloc, "GC.verify_internal_consistency")
exclude(:test_concat_under_gc_stress, "EnvUtil.under_gc_stress")
exclude(:test_product_under_gc_stress, "EnvUtil.under_gc_stress")
exclude(:test_to_h_single_element_with_object, "global side effects")
exclude(:test_to_h_block_single_element_with_object, "global side effects")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestArraySubclass.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
path = File.expand_path("../TestArray.rb", __FILE__)
instance_eval File.read(path), path
5 changes: 5 additions & 0 deletions test/.excludes-ractor/TestAssignment.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exclude(:test_assignment, "ractor incompatible")
exclude(:test_massign_const_order, "ractor incompatible")
exclude(:test_next, "ractor incompatible")
exclude(:test_return, "ractor incompatible")
exclude(:test_yield, "ractor incompatible")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestAssignmentGen.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_assignment, "ractor incompatible")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestAst.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude(:test_parse_file_raises_syntax_error, "Tempfile")
exclude(:test_of_proc_and_method, "Tempfile")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestAutoload.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "ractor incompatible")
3 changes: 3 additions & 0 deletions test/.excludes-ractor/TestBacktrace.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exclude(:test_caller_locations_absolute_path, "ractor incompatible")
exclude(:test_caller_locations_lineno, "ractor incompatible")
exclude(:test_caller_locations_path, "ractor incompatible")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestBasicInstructions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_.*/, "Lots of unfrozen strings")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestBeginEndBlock.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude(:test_internal_errinfo_at_exit, "uses fork")
exclude(:test_rescue_at_exit, "uses subprocess")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestBignum.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude(:test_bignum, "global variables")
exclude(:test_interrupt_during_bigdivrem, "Signal.trap proc accesses outers")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestCaseFold.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "TODO: tests use define_method")
5 changes: 5 additions & 0 deletions test/.excludes-ractor/TestClass.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exclude(:test_s_inherited, "class variables")
exclude(:test_singleton_class_should_has_own_namespace, "global variables")
exclude(:test_nonascii_name, "global side effects")
exclude(:test_check_inheritable_break_with_object, "global side effects")
exclude(/^test_subclass_gc/, "Takes long time")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestConst.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_const, "ractor incompatible")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestDefaultGems.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_validate_gemspec, "loading gemspecs accesses load path")
4 changes: 4 additions & 0 deletions test/.excludes-ractor/TestDefined.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exclude(:test_autoloaded_noload, "accesses load path")
exclude(:test_defined_global_variable, "ractor incompatible")
exclude(:test_super_in_basic_object, "ractor incompatible")
exclude(:test_respond_to, "Uses Warning[]=")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestDir.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "Lots of Dir.chdir")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestDir_M17N.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_.*/, "Lots of Dir.chdir")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestEnumerable.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_zip_ractor_unsafe, "global side effects")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestEnumerator.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/under_gc_compact_stress/, "EnvUtil.under_gc_compact_stress")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestEnv.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "ractor incompatible")
16 changes: 16 additions & 0 deletions test/.excludes-ractor/TestEval.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
exclude(:test_cvar_scope_with_instance_eval, "ractor incompatible")
exclude(:test_define_method_toplevel, "ractor incompatible")
exclude(:test_eval_with_toplevel_binding, "ractor incompatible")
exclude(:test_fixnum_instance_eval_cvar, "ractor incompatible")
exclude(:test_instance_eval_cvar, "ractor incompatible")
exclude(:test_instance_exec_cvar, "ractor incompatible")
exclude(:test_instance_eval_on_argf_singleton_class, "ractor incompatible")
exclude(:test_nil_instance_eval_cvar, "ractor incompatible")
exclude(:test_eval_basic_ractor_unsafe, "cvars and gvars")
exclude(:test_eval_binding_basic_ractor_unsafe, "cvars and gvars")
exclude(:test_module_eval_string_basic_ractor_unsafe, "cvars and gvars")
exclude(:test_module_eval_block_basic_ractor_unsafe, "cvars and gvars")
exclude(:test_instance_eval_string_basic_ractor_unsafe, "cvars and gvars")
exclude(:test_instance_eval_block_basic_ractor_unsafe, "cvars and gvars")
exclude(:test_instance_exec_block_basic_ractor_unsafe, "cvars and gvars")
exclude(:test_eval_orig_ractor_unsafe, "global side effects")
11 changes: 11 additions & 0 deletions test/.excludes-ractor/TestException.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
exclude(:test_kernel_warn_uplevel, "uses capture_warning_warn")
exclude(:test_thread_signal_location, "subprocess")
exclude(:test_warn_deprecated_backwards_compatibility_category, "ractor incompatible")
exclude(:test_warning_warn, "ractor incompatible")
exclude(:test_warning_warn_circular_require_backtrace, "ractor incompatible")
exclude(:test_warning_category, "global side effects")
exclude(:test_type_error_message_encoding, "global side effects")
exclude(:test_too_many_args_in_eval, "TODO: freezes process")
exclude(:test_catch_throw_in_require, "Tempfile")
exclude(:test_catch_throw_in_require_cant_be_rescued, "Tempfile")
exclude(:test_detailed_message_under_gc_compact_stress, "EnvUtil.under_gc_compact_stress")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestFiber.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_fork_from_fiber, "fork")
18 changes: 18 additions & 0 deletions test/.excludes-ractor/TestFile.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
exclude(:test_chown, "Tempfile")
exclude(:test_each_byte_extended_file, "Tempfile")
exclude(:test_empty_file_bom, "Tempfile")
exclude(:test_getbyte_extended_file, "Tempfile")
exclude(:test_gets_extended_file, "Tempfile")
exclude(:test_gets_para_extended_file, "Tempfile")
exclude(:test_read_all_extended_file, "Tempfile")
exclude(:test_realdirpath_junction, "Dir.chdir")
exclude(:test_realpath_ractor_unsafe, "Dir.chdir")
exclude(:test_realdirpath_ractor_unsafe, "Dir.chdir")
exclude(:test_stat, "Tempfile")
exclude(:test_truncate_beyond_eof, "Tempfile")
exclude(:test_truncate_rbuf, "Tempfile")
exclude(:test_truncate_size, "Tempfile")
exclude(:test_truncate_wbuf, "Tempfile")
exclude(:test_utime, "Tempfile")
exclude(/^test_bom/, "Tempfile")
# done
14 changes: 14 additions & 0 deletions test/.excludes-ractor/TestFileExhaustive.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exclude(:test_expand_path_compose, "Dir.chdir")
exclude(:test_expand_path_home, "global side effects")
exclude(:test_expand_path_home_dir_string, "global side effects")
exclude(:test_expand_path_memsize, "ObjectSpace.memsize_of")
exclude(:test_expand_path_encoding_filesystem, "global side effects")
exclude(:test_expand_path_error_for_non_absolute_home, "global side effects")
exclude(:test_expand_path_converts_a_pathname_to_an_absolute_pathname_using_home_as_base, "global side effects")
exclude(:test_expand_path_converts_a_pathname_to_an_absolute_pathname_using_unc_home, "global side effects")
exclude(:test_expand_path_does_not_modify_a_home_string_argument, "global side effects")
exclude(:test_flock_exclusive, "subprocess")
exclude(:test_flock_shared, "subprocess")
exclude(:test_stat_dotted_prefix_ractor_unsafe, "Dir.chdir")
exclude(:test_utime_ractor_unsafe, "Dir.chdir")
exclude(:test_umask, "global side effects")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestFlip.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_input_line_number_range, "Accesses $.")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestFloat.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_invalid_str, "EnvUtil.under_gc_stress")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestGCCompact.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "GC.auto_compact = true then setting it back is racy")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestGc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "ractor incompatible")
7 changes: 7 additions & 0 deletions test/.excludes-ractor/TestHash.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exclude(:test_AREF_fstring_key, "EnvUtil.without_gc")
exclude(:test_iterlevel_in_ivar_bug19589, "stack level too deep with ractors")
exclude(:test_memory_size_after_delete, "ObjectSpace.memsize_of not yet ractor safe")
exclude(:test_to_s, "global variables")
exclude(:test_inspect, "global side effects")
exclude(:test_broken_hash_value, "too many objects")
exclude(:test_replace_bug15358, "GC.start")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestHash/TestSubHash.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
path = File.expand_path("../../TestHash.rb", __FILE__)
instance_eval File.read(path), path
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestHashOnly.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
path = File.expand_path("../TestHash.rb", __FILE__)
instance_eval File.read(path), path
27 changes: 27 additions & 0 deletions test/.excludes-ractor/TestIO.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
exclude(:test_binmode_pipe, "global side effects")
exclude(:test_advise_pipe, "ractor incompatible")
exclude(:test_autoclose_false_closed_by_finalizer, "Tempfile")
exclude(:test_autoclose_true_closed_by_finalizer, "Tempfile")
exclude(:test_autoclose, "TODO: assert_raise buggy")
exclude(:test_copy_stream_dup_buffer, "Tempfile")
exclude(:test_copy_stream_no_busy_wait, "unpredictable")
exclude(:test_copy_stream_socket7, "fork")
exclude(:test_copy_stream_strio_to_tempfile, "Tempfile")
exclude(:test_fcntl_dupfd, "Tempfile")
exclude(:test_fcntl_lock_freebsd, "Tempfile + fork")
exclude(:test_fcntl_lock_linux, "Tempfile + fork")
exclude(:test_flush_in_finalizer1, "Tempfile + ObjectSpace.each_object")
exclude(:test_flush_in_finalizer2, "Tempfile + ObjectSpace.each_object")
exclude(:test_pid_after_close_read, "TODO: buggy")
exclude(:test_print_separators, "global variable access")
exclude(:test_race_between_read, "Tempfile")
exclude(:test_readline_limit_without_separator, "Tempfile")
exclude(:test_readline_separators_limits, "Tempfile")
exclude(:test_set_lineno_gets, "global variable access")
exclude(:test_set_lineno_readline, "global variable access")
exclude(:test_threaded_flush, "subprocesses")
exclude(:test_try_convert, "uses STDOUT")
exclude(:test_close_read_write_separately, "TODO: buggy with ractors")
exclude(:test_exception_at_close, "TODO: assert_raise sometimes fails under multiple ractors")
exclude(:test_std_fileno_ractor_unsafe, "unshareable objects")
exclude(/buffer_not_raise_shared_string_error/, "Tempfile")
13 changes: 13 additions & 0 deletions test/.excludes-ractor/TestIOBuffer.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
exclude(:test_bug_21210, "GC.verify_compaction_references")
exclude(:test_read, "Tempfile")
exclude(:test_read_with_with_length, "Tempfile")
exclude(:test_read_with_with_offset, "Tempfile")
exclude(:test_read_with_length_and_offset, "Tempfile")
exclude(:test_pread, "Tempfile")
exclude(:test_pread_offset, "Tempfile")
exclude(:test_private, "Tempfile")
exclude(:test_pwrite, "Tempfile")
exclude(:test_pwrite_offset, "Tempfile")
exclude(:test_shared, "fork")
exclude(:test_write, "Tempfile")
exclude(:test_write_with_length_and_offset, "Tempfile")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestIO_M17N.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude(:test_each_codepoint_need_more, "Tempfile")
exclude(:test_pipe_terminator_conversion, "Timeout.timeout")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestISeq.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "not ractor safe")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestInteger.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_aref, "Takes too long")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestKeyword.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_Thread_new_kwsplat, "global side effects")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestM17N.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
exclude(:test_string_inspect_encoding, "global side effects")
exclude(:test_object_utf16_32_inspect, "global side effects")
6 changes: 6 additions & 0 deletions test/.excludes-ractor/TestMarshal.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exclude(:test_context_switch, "class variables")
exclude(:test_struct_invalid_members, "global side effects")
exclude(:test_change_class_name, "global side effects")
exclude(:test_change_struct, "global side effects")
exclude(:test_continuation, "callcc")
exclude(:test_singleton, "class ivar")
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestMarshal/TestMarshalFreeze.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
path = File.expand_path("../../TestMarshal.rb", __FILE__)
instance_eval File.read(path), path
2 changes: 2 additions & 0 deletions test/.excludes-ractor/TestMarshal/TestMarshalFreezeProc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
path = File.expand_path("../../TestMarshal.rb", __FILE__)
instance_eval File.read(path), path
3 changes: 3 additions & 0 deletions test/.excludes-ractor/TestMath.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
exclude(:test_override_bignum_to_f, "global side effects")
exclude(:test_override_integer_to_f, "global side effects")
exclude(:test_override_rational_to_f, "global side effects")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestMetaclass.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "global side effects")
5 changes: 5 additions & 0 deletions test/.excludes-ractor/TestMethod.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
exclude(:test_unbind, "global side effects")
exclude(:test_define_method_in_private_scope, "TOPLEVEL_BINDING")
exclude(:test_method_list, "ObjectSpace.each_object")
exclude(:test_singleton_define_method_in_private_scope, "TOPLEVEL_BINDING")
exclude(:test_method_in_method_visibility_should_be_public, "global side effects")
29 changes: 29 additions & 0 deletions test/.excludes-ractor/TestModule.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
exclude(:test_attr_obsoleted_flag, "class ivars")
exclude(:test_attr_public_at_toplevel, "TOPLEVEL_BINDING")
exclude(:test_class_eval, "class variable access")
exclude(:test_class_variable_defined, "class vars")
exclude(:test_class_variable_get, "class vars")
exclude(:test_class_variable_in_dup_class, "class vars")
exclude(:test_class_variable_set, "class vars")
exclude(:test_class_variables, "class vars")
exclude(:test_remove_class_variable, "class vars")
exclude(:test_const_added, "class ivars")
exclude(:test_const_defined_invalid_symbol_name, "EnvUtil.under_gc_stress")
exclude(:test_const_set, "class ivars")
exclude(:test_extend_module_with_protected_method, "class ivars")
exclude(:test_initialize_copy_empty, "class ivars")
exclude(:test_module_subclass_initialize, "class ivars")
exclude(:test_private_constant_const_missing, "class ivars")
exclude(:test_private_constant_reopen, "TOPLEVEL_BINDING")
exclude(:test_s_constants, "global side effects")
exclude(:test_s_nesting, "global variable access")
exclude(:test_uninitialized_attr_class, "class ivars")
exclude(:test_uninitialized_toplevel_constant, "TOPLEVEL_BINDING")
exclude(:test_nested_get, "global side effects")
exclude(:test_nested_get_symbol, "global side effects")
exclude(:test_nested_defined, "global side effects")
exclude(:test_nested_defined_symbol, "global side effects")
exclude(:test_deprecate_constant, "Warning[]=")
exclude(:test_dup, "global side effects")
exclude(:test_module_exec, "global side effects")
exclude(:test_module_eval, "global side effects")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestNamespace.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(:test_global_variables, "global variable access")
1 change: 1 addition & 0 deletions test/.excludes-ractor/TestObjectSpace.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
exclude(/^test_/, "TODO: should be safe when ractor-local GC lands")
6 changes: 6 additions & 0 deletions test/.excludes-ractor/TestParse.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
exclude(:test_dstr, "class vars")
exclude(:test_global_variable, "global variable access")
exclude(:test_mlhs_node, "class ivars")
exclude(:test_shareable_constant_value_nested, "can't access unshareables")
exclude(:test_shareable_constant_value_simple, "can't access unshareables")
exclude(:test_parsing_begin_statement_inside_method_definition, "global side effects")
4 changes: 4 additions & 0 deletions test/.excludes-ractor/TestPatternMatching.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
exclude(:test_deconstruct_keys, "class ivars")
exclude(:test_hash_pattern, "class ivars")
exclude(:test_hash_pattern, "class ivars")
exclude(:test_pin_operator_value_pattern_ractor_unsafe, "cvars and gvars")
Loading
Loading