mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
ext/-test-: reduce feature names
* ext/-test-/**/extconf.rb: bring up extension libraries which have same name as the parent directory to reduce feature names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
09bdb7913c
commit
a5beed9ff4
22 changed files with 22 additions and 22 deletions
|
@ -16,7 +16,7 @@ bug_start(VALUE self, VALUE hash)
|
|||
}
|
||||
|
||||
void
|
||||
Init_bug(void)
|
||||
Init_bug_3571(void)
|
||||
{
|
||||
VALUE mBug = rb_define_module("Bug");
|
||||
rb_define_module_function(mBug, "start", bug_start, 0);
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/bug-3571/bug")
|
||||
create_makefile("-test-/bug_3571")
|
||||
|
|
|
@ -7,7 +7,7 @@ bug_funcall_callback(VALUE self, VALUE obj)
|
|||
}
|
||||
|
||||
void
|
||||
Init_bug(void)
|
||||
Init_bug_5832(void)
|
||||
{
|
||||
VALUE mBug = rb_define_module("Bug");
|
||||
rb_define_module_function(mBug, "funcall_callback", bug_funcall_callback, 1);
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/bug-5832/bug")
|
||||
create_makefile("-test-/bug_5832")
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/bug_reporter/bug_reporter")
|
||||
create_makefile("-test-/bug_reporter")
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# frozen_string_literal: false
|
||||
require 'mkmf'
|
||||
create_makefile("-test-/funcall/funcall")
|
||||
create_makefile("-test-/funcall")
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/iseq_load/iseq_load")
|
||||
create_makefile("-test-/iseq_load")
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/load/dot.dot/dot.dot")
|
||||
create_makefile("-test-/load/dot.dot")
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/num2int/num2int")
|
||||
create_makefile("-test-/num2int")
|
||||
|
|
|
@ -4,4 +4,4 @@ inits = $srcs.map {|s| File.basename(s, ".*")}
|
|||
inits.delete("init")
|
||||
inits.map! {|s|"X(#{s})"}
|
||||
$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
|
||||
create_makefile("-test-/path_to_class/path_to_class")
|
||||
create_makefile("-test-/path_to_class")
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/typeddata/typeddata")
|
||||
create_makefile("-test-/typeddata")
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
# frozen_string_literal: false
|
||||
create_makefile("-test-/wait_for_single_fd/wait_for_single_fd")
|
||||
create_makefile("-test-/wait_for_single_fd")
|
||||
|
|
|
@ -14,7 +14,7 @@ class TestBugReporter < Test::Unit::TestCase
|
|||
]
|
||||
tmpdir = Dir.mktmpdir
|
||||
|
||||
args = ["--disable-gems", "-r-test-/bug_reporter/bug_reporter",
|
||||
args = ["--disable-gems", "-r-test-/bug_reporter",
|
||||
"-C", tmpdir]
|
||||
stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
|
||||
assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT")
|
||||
|
|
|
@ -7,7 +7,7 @@ class TestFuncall < Test::Unit::TestCase
|
|||
yield(*args) if block
|
||||
end
|
||||
end
|
||||
require '-test-/funcall/funcall'
|
||||
require '-test-/funcall'
|
||||
|
||||
def test_with_funcall2
|
||||
ok = nil
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
|
||||
class TestIseqLoad < Test::Unit::TestCase
|
||||
require '-test-/iseq_load/iseq_load'
|
||||
require '-test-/iseq_load'
|
||||
ISeq = RubyVM::InstructionSequence
|
||||
|
||||
def test_bug8543
|
||||
|
|
|
@ -5,7 +5,7 @@ class Test_DotDot < Test::Unit::TestCase
|
|||
def test_load_dot_dot
|
||||
feature = '[ruby-dev:41774]'
|
||||
assert_nothing_raised(LoadError, feature) {
|
||||
require '-test-/load/dot.dot/dot.dot'
|
||||
require '-test-/load/dot.dot'
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
require '-test-/num2int/num2int'
|
||||
require '-test-/num2int'
|
||||
|
||||
class TestNum2int < Test::Unit::TestCase
|
||||
SHRT_MIN = -32768
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
|
||||
class Test_PathToClass < Test::Unit::TestCase
|
||||
require '-test-/path_to_class/path_to_class'
|
||||
require '-test-/path_to_class'
|
||||
|
||||
def test_path_to_class
|
||||
bug5691 = '[ruby-core:41410]'
|
||||
|
|
|
@ -16,6 +16,6 @@ SRC
|
|||
"-:2:in `start'",
|
||||
"-:2:in `<main>'",
|
||||
]
|
||||
assert_in_out_err(%w"-r-test-/bug-3571/bug", src, [], out, bug3571)
|
||||
assert_in_out_err(%w"-r-test-/bug_3571", src, [], out, bug3571)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require '-test-/bug-5832/bug'
|
||||
require '-test-/bug_5832'
|
||||
|
||||
class Test_BUG_5832 < Test::Unit::TestCase
|
||||
def test_block_passing
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# frozen_string_literal: false
|
||||
require 'test/unit'
|
||||
require "-test-/typeddata/typeddata"
|
||||
require "-test-/typeddata"
|
||||
|
||||
class Test_TypedData < Test::Unit::TestCase
|
||||
def test_wrong_argtype
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
require 'test/unit'
|
||||
|
||||
class TestWaitForSingleFD < Test::Unit::TestCase
|
||||
require '-test-/wait_for_single_fd/wait_for_single_fd'
|
||||
require '-test-/wait_for_single_fd'
|
||||
|
||||
def with_pipe
|
||||
r, w = IO.pipe
|
||||
|
|
Loading…
Add table
Reference in a new issue