-test-/string: move

* ext/-test-/string/extconf.rb: move "-test-/string/string.so" to
  "-test-/string.so".

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-07-15 03:56:17 +00:00
parent 4592e15e35
commit daf7b1e479
11 changed files with 13 additions and 13 deletions

View File

@ -4,4 +4,4 @@ inits = $srcs.map {|s| File.basename(s, ".*")}
inits.delete("init") inits.delete("init")
inits.map! {|s|"X(#{s})"} inits.map! {|s|"X(#{s})"}
$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\"" $defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
create_makefile("-test-/string/string") create_makefile("-test-/string")

View File

@ -1,6 +1,6 @@
# coding: ascii-8bit # coding: ascii-8bit
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
require "rbconfig/sizeof" require "rbconfig/sizeof"
class Test_StringCoderange < Test::Unit::TestCase class Test_StringCoderange < Test::Unit::TestCase

View File

@ -1,5 +1,5 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
class Test_StringCStr < Test::Unit::TestCase class Test_StringCStr < Test::Unit::TestCase
Bug4319 = '[ruby-dev:43094]' Bug4319 = '[ruby-dev:43094]'

View File

@ -1,5 +1,5 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
class Test_StringEllipsize < Test::Unit::TestCase class Test_StringEllipsize < Test::Unit::TestCase
def setup def setup

View File

@ -1,5 +1,5 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
class Test_StrEncAssociate < Test::Unit::TestCase class Test_StrEncAssociate < Test::Unit::TestCase
def test_frozen def test_frozen

View File

@ -1,5 +1,5 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
class Test_StringEncStrBufCat < Test::Unit::TestCase class Test_StringEncStrBufCat < Test::Unit::TestCase
Bug6509 = '[ruby-dev:45688]' Bug6509 = '[ruby-dev:45688]'

View File

@ -1,9 +1,9 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
class Test_StringModifyExpand < Test::Unit::TestCase class Test_StringModifyExpand < Test::Unit::TestCase
def test_modify_expand_memory_leak def test_modify_expand_memory_leak
assert_no_memory_leak(["-r-test-/string/string"], assert_no_memory_leak(["-r-test-/string"],
<<-PRE, <<-CMD, "rb_str_modify_expand()", limit: 2.5) <<-PRE, <<-CMD, "rb_str_modify_expand()", limit: 2.5)
s=Bug::String.new s=Bug::String.new
PRE PRE

View File

@ -4,7 +4,7 @@ class Test_StringNoFree < Test::Unit::TestCase
def test_no_memory_leak def test_no_memory_leak
bug10942 = '[ruby-core:68436] [Bug #10942] no leak on nofree string' bug10942 = '[ruby-core:68436] [Bug #10942] no leak on nofree string'
code = '.times {Bug::String.nofree << "a" * 100}' code = '.times {Bug::String.nofree << "a" * 100}'
assert_no_memory_leak(%w(-r-test-/string/string), assert_no_memory_leak(%w(-r-test-/string),
"100_000#{code}", "100_000#{code}",
"1_000_000#{code}", "1_000_000#{code}",
bug10942, rss: true) bug10942, rss: true)

View File

@ -1,5 +1,5 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
require "tempfile" require "tempfile"
class Test_StringNormalize < Test::Unit::TestCase class Test_StringNormalize < Test::Unit::TestCase
@ -102,7 +102,7 @@ class Test_StringNormalize < Test::Unit::TestCase
end end
def test_invalid_sequence def test_invalid_sequence
assert_separately(%w[-r-test-/string/string], <<-'end;') assert_separately(%w[-r-test-/string], <<-'end;')
assert_equal("\u{fffd}", Bug::String.new("\xff").normalize_ospath) assert_equal("\u{fffd}", Bug::String.new("\xff").normalize_ospath)
end; end;
end end

View File

@ -1,5 +1,5 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
class Test_StringQSort < Test::Unit::TestCase class Test_StringQSort < Test::Unit::TestCase
def test_qsort def test_qsort

View File

@ -1,5 +1,5 @@
require 'test/unit' require 'test/unit'
require "-test-/string/string" require "-test-/string"
class Test_StrSetLen < Test::Unit::TestCase class Test_StrSetLen < Test::Unit::TestCase
def setup def setup