mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
-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:
parent
4592e15e35
commit
daf7b1e479
11 changed files with 13 additions and 13 deletions
|
@ -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-/string/string")
|
||||
create_makefile("-test-/string")
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# coding: ascii-8bit
|
||||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
require "rbconfig/sizeof"
|
||||
|
||||
class Test_StringCoderange < Test::Unit::TestCase
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
|
||||
class Test_StringCStr < Test::Unit::TestCase
|
||||
Bug4319 = '[ruby-dev:43094]'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
|
||||
class Test_StringEllipsize < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
|
||||
class Test_StrEncAssociate < Test::Unit::TestCase
|
||||
def test_frozen
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
|
||||
class Test_StringEncStrBufCat < Test::Unit::TestCase
|
||||
Bug6509 = '[ruby-dev:45688]'
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
|
||||
class Test_StringModifyExpand < Test::Unit::TestCase
|
||||
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)
|
||||
s=Bug::String.new
|
||||
PRE
|
||||
|
|
|
@ -4,7 +4,7 @@ class Test_StringNoFree < Test::Unit::TestCase
|
|||
def test_no_memory_leak
|
||||
bug10942 = '[ruby-core:68436] [Bug #10942] no leak on nofree string'
|
||||
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}",
|
||||
"1_000_000#{code}",
|
||||
bug10942, rss: true)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
require "tempfile"
|
||||
|
||||
class Test_StringNormalize < Test::Unit::TestCase
|
||||
|
@ -102,7 +102,7 @@ class Test_StringNormalize < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
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)
|
||||
end;
|
||||
end
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
|
||||
class Test_StringQSort < Test::Unit::TestCase
|
||||
def test_qsort
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
require 'test/unit'
|
||||
require "-test-/string/string"
|
||||
require "-test-/string"
|
||||
|
||||
class Test_StrSetLen < Test::Unit::TestCase
|
||||
def setup
|
||||
|
|
Loading…
Reference in a new issue