Skip to content

Commit c3171f5

Browse files
ahorekkares
authored andcommitted
[test] update MRI test suite from ruby_2_5 (#5931)
* [test] update MRI test suite from ruby_2_5 * Add tags for new failing specs * skip removed test * move failing tag * Add tags for new failing specs
1 parent 914e38c commit c3171f5

File tree

88 files changed

+961
-2724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+961
-2724
lines changed

test/mri.stdlib.index

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ psych/test_string.rb
209209
psych/test_struct.rb
210210
psych/test_symbol.rb
211211
psych/test_tainted.rb
212-
psych/test_to_yaml_properties.rb
213212
psych/test_tree_builder.rb
214213
psych/test_yaml.rb
215214
psych/test_yamlstore.rb

test/mri/-ext-/integer/test_integer.rb

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,15 @@ def test_fixnum_range
1212
assert_fixnum(FIXNUM_MAX)
1313
assert_bignum(FIXNUM_MAX+1)
1414
end
15+
16+
def test_positive_pow
17+
assert_separately(%w[-r-test-/integer], "#{<<~"begin;"}\n#{<<~'end;'}", timeout: 3)
18+
begin;
19+
assert_equal(1, 1.positive_pow(1))
20+
assert_equal(0, 0.positive_pow(1))
21+
assert_equal(3, 3.positive_pow(1))
22+
assert_equal(-3, -3.positive_pow(1))
23+
assert_equal(9, -3.positive_pow(2))
24+
end;
25+
end
1526
end
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
require 'test/unit'
2+
require '-test-/string'
3+
4+
class Test_RbStrDup < Test::Unit::TestCase
5+
def test_nested_shared_non_frozen
6+
str = Bug::String.rb_str_dup(Bug::String.rb_str_dup("a" * 50))
7+
assert_send([Bug::String, :shared_string?, str])
8+
assert_not_send([Bug::String, :sharing_with_shared?, str], '[Bug #15792]')
9+
end
10+
11+
def test_nested_shared_frozen
12+
str = Bug::String.rb_str_dup(Bug::String.rb_str_dup("a" * 50).freeze)
13+
assert_send([Bug::String, :shared_string?, str])
14+
assert_not_send([Bug::String, :sharing_with_shared?, str], '[Bug #15792]')
15+
end
16+
end

test/mri/drb/ut_eval.rb

Lines changed: 0 additions & 37 deletions
This file was deleted.

test/mri/excludes/FTPTest.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22
exclude :test_list_read_timeout_exceeded, "needs investigation #4303"
33
exclude :test_status, ""
44
exclude :test_tls_post_connection_check, "new SSL-related failure in 2.4. See jruby/jruby-openssl#139"
5+
exclude :test_active_private_data_connection, "needs investigation"
6+
exclude :test_passive_private_data_connection, "needs investigation"

test/mri/excludes/TestBeginEndBlock.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
exclude :test_callcc_at_exit, "requires callcc"
55
exclude :test_propagate_signaled, "needs investigation"
66
exclude :test_raise_in_at_exit, "need to run multiple -e as separate top-level scripts (#3674)"
7-
7+
exclude :test_internal_errinfo_at_exit, "no fork"

test/mri/excludes/TestFnmatch.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
exclude :test_unicode, "needs investigation"
2+
exclude :test_nullchar, "needs investigation"

test/mri/excludes/TestIO.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@
3535
exclude :test_sysread_buffer_not_raise_shared_string_error, "hangs"
3636
exclude :test_sysread_locktmp, "requires string locking we do not support"
3737
exclude :test_threaded_flush, "needs investigation"
38+
exclude :test_gets_chomp_default_rs, "needs investigation"

test/mri/excludes/TestIO_M17N.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@
1212
exclude :test_undef_w_stateful, "needs investigation"
1313
exclude :test_undef_w_stateless, "needs investigation"
1414
exclude :test_ungetc_int, "needs investigation"
15+
exclude :test_strip_bom, "needs investigation"

test/mri/excludes/TestISeq.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exclude :test_parent_iseq_mark, "time consuming test"

0 commit comments

Comments
 (0)