1
0
Fork 0
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:
nobu 2016-01-10 09:43:47 +00:00
parent 09bdb7913c
commit a5beed9ff4
22 changed files with 22 additions and 22 deletions

View file

@ -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);

View file

@ -1,2 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/bug-3571/bug")
create_makefile("-test-/bug_3571")

View file

@ -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);

View file

@ -1,2 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/bug-5832/bug")
create_makefile("-test-/bug_5832")

View file

@ -1,2 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/bug_reporter/bug_reporter")
create_makefile("-test-/bug_reporter")

View file

@ -1,3 +1,3 @@
# frozen_string_literal: false
require 'mkmf'
create_makefile("-test-/funcall/funcall")
create_makefile("-test-/funcall")

View file

@ -1,2 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/iseq_load/iseq_load")
create_makefile("-test-/iseq_load")

View file

@ -1,2 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/load/dot.dot/dot.dot")
create_makefile("-test-/load/dot.dot")

View file

@ -1,2 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/num2int/num2int")
create_makefile("-test-/num2int")

View file

@ -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")

View file

@ -1,2 +1,2 @@
# frozen_string_literal: false
create_makefile("-test-/typeddata/typeddata")
create_makefile("-test-/typeddata")

View file

@ -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")

View file

@ -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")

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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]'

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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