Skip to content

Commit

Permalink
[GR-13762] Run TestFileExhaustive and treat it as a test needing a C …
Browse files Browse the repository at this point in the history
…extension like cext-ruby/

PullRequest: truffleruby/596
  • Loading branch information
eregon committed Feb 6, 2019
2 parents ce0fca5 + 02a9771 commit 54ccb2e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions test/mri/excludes/TestFileExhaustive.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
exclude :test_absolute_path, "needs investigation"
exclude :test_basename, "needs investigation"
exclude :test_closed_io_identical_p, "needs investigation"
exclude :test_expand_path_converts_a_dot_with_unc_dir, "needs investigation"
exclude :test_expand_path_preserves_unc_path_root, "needs investigation"
exclude :test_expand_path_returns_tainted_strings_or_not, "needs investigation"
exclude :test_join_ascii_incompatible, "needs investigation"
exclude :test_readlink_long_path, "needs investigation"
exclude :test_size, "needs investigation"
exclude :test_atime, "needs investigation"
exclude :test_expand_path_memsize, "needs investigation"
exclude :test_lchmod, "needs investigation"
exclude :test_test, "needs investigation"
2 changes: 2 additions & 0 deletions test/mri/sulong.exclude
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ cext-ruby/win32/test_console_attr.rb
cext-ruby/win32/test_dln.rb
cext-ruby/win32/test_fd_setsize.rb

ruby/test_file_exhaustive.rb

openssl/test_asn1.rb
openssl/test_bn.rb
openssl/test_buffering.rb
Expand Down
2 changes: 1 addition & 1 deletion test/mri/tests/ruby/test_file_exhaustive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require "fileutils"
require "tmpdir"
require "socket"
require '-test-/file'
require 'c/file'

class TestFileExhaustive < Test::Unit::TestCase
DRIVE = Dir.pwd[%r'\A(?:[a-z]:|//[^/]+/[^/]+)'i]
Expand Down
6 changes: 4 additions & 2 deletions tool/jt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1030,8 +1030,10 @@ def run_mri_tests(extra_args, test_files, runner_args, run_options)
"RUBYOPT" => [*ENV['RUBYOPT'], '--disable-gems'].join(' '),
"TRUFFLERUBY_RESILIENT_GEM_HOME" => nil,
}

cext_tests = test_files.select { |f| f.include?("cext-ruby") }
cext_tests = test_files.select do |f|
f.include?("cext-ruby") ||
f == "ruby/test_file_exhaustive.rb"
end
cext_tests.each do |test|
puts
puts test
Expand Down

0 comments on commit 54ccb2e

Please sign in to comment.