Skip to content
Permalink
Browse files
Revert "Update to release MRI 2.2 tests."
This reverts commit 7b90ff4.
  • Loading branch information
headius committed Dec 27, 2014
1 parent 7b90ff4 commit c1be61a501d1295fa1ea9f894e1a8e186411f32a
Showing with 1,506 additions and 4,314 deletions.
  1. +1 −0 test/mri/-ext-/bug_reporter/test_bug_reporter.rb
  2. +1 −0 test/mri/-ext-/exception/test_data_error.rb
  3. +1 −0 test/mri/-ext-/exception/test_ensured.rb
  4. +0 −95 test/mri/-ext-/iseq_load/test_iseq_load.rb
  5. +1 −0 test/mri/-ext-/marshal/test_usrmarshal.rb
  6. +0 −37 test/mri/-ext-/proc/test_bmethod.rb
  7. +3 −60 test/mri/-ext-/string/test_cstr.rb
  8. +1 −0 test/mri/-ext-/string/test_modify_expand.rb
  9. +1 −0 test/mri/-ext-/struct/test_member.rb
  10. +6 −76 test/mri/-ext-/symbol/test_inadvertent_creation.rb
  11. +1 −0 test/mri/-ext-/test_bug-3571.rb
  12. +4 −0 test/mri/-ext-/test_printf.rb
  13. +1 −0 test/mri/-ext-/test_recursion.rb
  14. +1 −0 test/mri/-ext-/tracepoint/test_tracepoint.rb
  15. +1 −0 test/mri/-ext-/win32/test_dln.rb
  16. +1 −0 test/mri/-ext-/win32/test_fd_setsize.rb
  17. +1 −6 test/mri/bigdecimal/test_bigdecimal.rb
  18. +1 −0 test/mri/bigdecimal/test_bigmath.rb
  19. +1 −0 test/mri/cgi/test_cgi_multipart.rb
  20. +1 −1 test/mri/dbm/test_dbm.rb
  21. +0 −10 test/mri/digest/digest/foo.rb
  22. +2 −61 test/mri/digest/test_digest.rb
  23. +1 −0 test/mri/drb/drbtest.rb
  24. +1 −0 test/mri/dtrace/helper.rb
  25. +0 −19 test/mri/erb/test_erb.rb
  26. +0 −11 test/mri/erb/test_erb_command.rb
  27. +1 −3 test/mri/etc/test_etc.rb
  28. +1 −0 test/mri/fiddle/helper.rb
  29. +1 −0 test/mri/fiddle/test_function.rb
  30. +1 −0 test/mri/fiddle/test_handle.rb
  31. +1 −0 test/mri/fiddle/test_pointer.rb
  32. +5 −6 test/mri/fileutils/test_fileutils.rb
  33. +2 −5 test/mri/gdbm/test_gdbm.rb
  34. +11 −37 test/mri/io/console/test_io_console.rb
  35. +1 −0 test/mri/irb/test_completion.rb
  36. +1 −0 test/mri/irb/test_option.rb
  37. +1 −0 test/mri/irb/test_raise_no_backtrace_exception.rb
  38. +1 −0 test/mri/json/test_json_generate.rb
  39. +0 −604 test/mri/lib/envutil.rb
  40. +0 −21 test/mri/lib/find_executable.rb
  41. +0 −4 test/mri/lib/leakchecker.rb
  42. +0 −111 test/mri/lib/memory_status.rb
  43. +0 −2 test/mri/lib/minitest/unit.rb
  44. +0 −1 test/mri/lib/test/unit.rb
  45. +3 −3 test/mri/lib/test/unit/assertions.rb
  46. +1 −0 test/mri/logger/test_logdevice.rb
  47. +0 −15 test/mri/matrix/test_matrix.rb
  48. +0 −43 test/mri/matrix/test_vector.rb
  49. +1 −0 test/mri/mkmf/test_config.rb
  50. +60 −72 test/mri/monitor/test_monitor.rb
  51. +13 −9 test/mri/net/ftp/test_ftp.rb
  52. +1 −1 test/mri/net/http/test_http.rb
  53. +0 −59 test/mri/net/http/test_httpresponse.rb
  54. +1 −41 test/mri/net/http/test_https.rb
  55. +14 −17 test/mri/net/http/test_https_proxy.rb
  56. +10 −4 test/mri/net/http/utils.rb
  57. +221 −224 test/mri/net/imap/test_imap.rb
  58. +0 −8 test/mri/net/imap/test_imap_response_parser.rb
  59. +12 −16 test/mri/net/pop/test_pop.rb
  60. +2 −2 test/mri/objspace/test_objspace.rb
  61. +35 −112 test/mri/open-uri/test_open-uri.rb
  62. +36 −103 test/mri/open-uri/test_ssl.rb
  63. +8 −3 test/mri/openssl/test_asn1.rb
  64. +1 −1 test/mri/openssl/test_bn.rb
  65. +1 −1 test/mri/openssl/test_buffering.rb
  66. +1 −1 test/mri/openssl/test_cipher.rb
  67. +1 −1 test/mri/openssl/test_config.rb
  68. +1 −1 test/mri/openssl/test_digest.rb
  69. +1 −1 test/mri/openssl/test_engine.rb
  70. +1 −1 test/mri/openssl/test_fips.rb
  71. +1 −1 test/mri/openssl/test_hmac.rb
  72. +1 −1 test/mri/openssl/test_ns_spki.rb
  73. +1 −1 test/mri/openssl/test_ocsp.rb
  74. +1 −1 test/mri/openssl/test_pair.rb
  75. +4 −2 test/mri/openssl/test_partial_record_read.rb
  76. +1 −1 test/mri/openssl/test_pkcs12.rb
  77. +1 −1 test/mri/openssl/test_pkcs5.rb
  78. +1 −1 test/mri/openssl/test_pkcs7.rb
  79. +1 −1 test/mri/openssl/test_pkey_dh.rb
  80. +1 −1 test/mri/openssl/test_pkey_dsa.rb
  81. +1 −1 test/mri/openssl/test_pkey_ec.rb
  82. +1 −1 test/mri/openssl/test_pkey_rsa.rb
  83. +26 −42 test/mri/openssl/test_ssl.rb
  84. +32 −43 test/mri/openssl/test_ssl_session.rb
  85. +1 −1 test/mri/openssl/test_x509cert.rb
  86. +1 −1 test/mri/openssl/test_x509crl.rb
  87. +1 −1 test/mri/openssl/test_x509ext.rb
  88. +1 −1 test/mri/openssl/test_x509name.rb
  89. +1 −1 test/mri/openssl/test_x509req.rb
  90. +2 −1 test/mri/openssl/test_x509store.rb
  91. +65 −60 test/mri/openssl/utils.rb
  92. +1 −0 test/mri/pathname/test_pathname.rb
  93. +1 −1 test/mri/psych/json/test_stream.rb
  94. +1 −1 test/mri/psych/test_json_tree.rb
  95. +0 −54 test/mri/psych/test_marshalable.rb
  96. +3 −2 test/mri/rake/helper.rb
  97. +1 −1 test/mri/rake/support/rakefile_definitions.rb
  98. +2 −2 test/mri/rake/test_rake_application.rb
  99. +2 −2 test/mri/rake/test_rake_application_options.rb
  100. +0 −5 test/mri/rake/test_rake_definitions.rb
  101. +8 −4 test/mri/rake/test_rake_file_task.rb
  102. +0 −18 test/mri/rake/test_rake_late_time.rb
  103. +7 −12 test/mri/rake/test_rake_test_task.rb
  104. +1 −0 test/mri/rake/test_rake_thread_pool.rb
  105. +2 −2 test/mri/rdoc/test_rdoc_generator_darkfish.rb
  106. +0 −56 test/mri/rdoc/test_rdoc_generator_json_index.rb
  107. +1 −1 test/mri/rdoc/test_rdoc_generator_markup.rb
  108. +0 −3 test/mri/rdoc/test_rdoc_markup_attribute_manager.rb
  109. +4 −4 test/mri/rdoc/test_rdoc_markup_heading.rb
  110. +26 −46 test/mri/rdoc/test_rdoc_markup_to_html.rb
  111. +7 −8 test/mri/rdoc/test_rdoc_markup_to_html_snippet.rb
  112. +4 −4 test/mri/rdoc/test_rdoc_markup_to_label.rb
  113. +5 −13 test/mri/rdoc/test_rdoc_single_class.rb
  114. +0 −55 test/mri/rdoc/test_rdoc_stats.rb
  115. +1 −0 test/mri/readline/test_readline.rb
  116. +67 −83 test/mri/resolv/test_dns.rb
  117. +47 −114 test/mri/rexml/test_document.rb
  118. +1 −0 test/mri/rinda/test_rinda.rb
  119. +2 −6 test/mri/ripper/dummyparser.rb
  120. +3 −2 test/mri/ripper/test_files.rb
  121. +1 −8 test/mri/ripper/test_parser_events.rb
  122. +0 −3 test/mri/ripper/test_ripper.rb
  123. +0 −26 test/mri/ripper/test_sexp.rb
  124. +1 −0 test/mri/ruby/test_alias.rb
  125. +1 −0 test/mri/ruby/test_argf.rb
  126. +9 −15 test/mri/ruby/test_array.rb
  127. +4 −3 test/mri/ruby/test_autoload.rb
  128. +1 −0 test/mri/ruby/test_beginendblock.rb
  129. +1 −0 test/mri/ruby/test_case.rb
  130. +1 −0 test/mri/ruby/test_class.rb
  131. +1 −0 test/mri/ruby/test_comparable.rb
  132. +6 −12 test/mri/ruby/test_const.rb
  133. +2 −1 test/mri/ruby/test_continuation.rb
  134. +1 −0 test/mri/ruby/test_defined.rb
  135. +10 −19 test/mri/ruby/test_dir.rb
  136. +1 −0 test/mri/ruby/test_dir_m17n.rb
  137. +1 −0 test/mri/ruby/test_econv.rb
  138. +1 −0 test/mri/ruby/test_encoding.rb
  139. +1 −1 test/mri/ruby/test_enum.rb
  140. +1 −0 test/mri/ruby/test_enumerator.rb
  141. +1 −0 test/mri/ruby/test_env.rb
  142. +1 −9 test/mri/ruby/test_eval.rb
  143. +13 −71 test/mri/ruby/test_exception.rb
  144. +3 −2 test/mri/ruby/test_fiber.rb
  145. +1 −6 test/mri/ruby/test_file.rb
  146. +4 −15 test/mri/ruby/test_file_exhaustive.rb
  147. +1 −0 test/mri/ruby/test_flip.rb
  148. +1 −0 test/mri/ruby/test_float.rb
  149. +1 −0 test/mri/ruby/test_fnmatch.rb
  150. +2 −26 test/mri/ruby/test_gc.rb
  151. +4 −3 test/mri/ruby/test_hash.rb
  152. +75 −88 test/mri/ruby/test_io.rb
  153. +1 −16 test/mri/ruby/test_io_m17n.rb
  154. +7 −17 test/mri/ruby/test_iseq.rb
  155. +3 −13 test/mri/ruby/test_keyword.rb
  156. +0 −26 test/mri/ruby/test_lambda.rb
  157. +1 −0 test/mri/ruby/test_lazy_enumerator.rb
  158. +1 −10 test/mri/ruby/test_literal.rb
  159. +1 −8 test/mri/ruby/test_m17n.rb
  160. +1 −22 test/mri/ruby/test_method.rb
  161. +4 −7 test/mri/ruby/test_module.rb
  162. +1 −0 test/mri/ruby/test_numeric.rb
  163. +5 −19 test/mri/ruby/test_object.rb
  164. +1 −7 test/mri/ruby/test_objectspace.rb
  165. +0 −36 test/mri/ruby/test_optimization.rb
  166. +0 −13 test/mri/ruby/test_pack.rb
  167. +0 −6 test/mri/ruby/test_parse.rb
  168. +1 −7 test/mri/ruby/test_proc.rb
  169. +112 −128 test/mri/ruby/test_process.rb
  170. +1 −0 test/mri/ruby/test_rand.rb
  171. +1 −0 test/mri/ruby/test_range.rb
  172. +2 −2 test/mri/ruby/test_readpartial.rb
  173. +1 −0 test/mri/ruby/test_refinement.rb
  174. +1 −0 test/mri/ruby/test_regexp.rb
  175. +3 −25 test/mri/ruby/test_require.rb
  176. +4 −42 test/mri/ruby/test_rubyoptions.rb
  177. +19 −31 test/mri/ruby/test_settracefunc.rb
  178. +1 −0 test/mri/ruby/test_signal.rb
  179. +2 −3 test/mri/ruby/test_sprintf.rb
  180. +1 −13 test/mri/ruby/test_string.rb
  181. +1 −42 test/mri/ruby/test_struct.rb
  182. +1 −0 test/mri/ruby/test_super.rb
  183. +6 −83 test/mri/ruby/test_syntax.rb
  184. +1 −0 test/mri/ruby/test_system.rb
  185. +2 −0 test/mri/ruby/test_thread.rb
  186. +1 −0 test/mri/ruby/test_threadgroup.rb
  187. +1 −12 test/mri/ruby/test_time.rb
  188. +1 −1 test/mri/ruby/test_transcode.rb
  189. +1 −0 test/mri/ruby/test_unicode_escape.rb
  190. +4 −16 test/mri/ruby/test_variable.rb
  191. +1 −0 test/mri/ruby/test_weakmap.rb
  192. +1 −0 test/mri/ruby/test_whileuntil.rb
  193. +32 −15 test/mri/rubygems/test_gem.rb
  194. +4 −4 test/mri/rubygems/test_gem_commands_contents_command.rb
  195. +0 −92 test/mri/rubygems/test_gem_commands_pristine_command.rb
  196. +6 −10 test/mri/rubygems/test_gem_package_tar_writer.rb
  197. +1 −25 test/mri/rubygems/test_gem_remote_fetcher.rb
  198. +1 −29 test/mri/rubygems/test_gem_request_set_lockfile.rb
  199. +2 −2 test/mri/rubygems/test_gem_resolver_api_specification.rb
  200. +0 −14 test/mri/rubygems/test_gem_resolver_installer_set.rb
  201. +0 −14 test/mri/rubygems/test_gem_source.rb
  202. +1 −50 test/mri/rubygems/test_gem_specification.rb
  203. +1 −9 test/mri/rubygems/test_gem_stub_specification.rb
  204. +0 −16 test/mri/rubygems/test_gem_text.rb
  205. +0 −24 test/mri/rubygems/test_kernel.rb
  206. +1 −0 test/mri/runner.rb
  207. +2 −1 test/mri/sdbm/test_sdbm.rb
  208. +1 −0 test/mri/shell/test_command_processor.rb
  209. +1 −0 test/mri/test_mathn.rb
  210. +1 −7 test/mri/test_open3.rb
  211. +0 −8 test/mri/test_pp.rb
  212. +1 −0 test/mri/test_pstore.rb
  213. +1 −0 test/mri/test_pty.rb
  214. +1 −0 test/mri/test_tempfile.rb
  215. +77 −85 test/mri/test_time.rb
  216. +0 −6 test/mri/test_tmpdir.rb
  217. +1 −0 test/mri/test_tracer.rb
  218. +0 −13 test/mri/test_tsort.rb
  219. +3 −11 test/mri/test_unicode_normalize.rb
  220. +1 −8 test/mri/test_weakref.rb
  221. +1 −0 test/mri/testunit/test_rake_integration.rb
  222. +1 −0 test/mri/thread/test_cv.rb
  223. +1 −0 test/mri/thread/test_queue.rb
  224. +1 −0 test/mri/uri/test_common.rb
  225. +3 −21 test/mri/uri/test_generic.rb
  226. +5 −16 test/mri/webrick/test_cgi.rb
  227. +10 −29 test/mri/webrick/test_filehandler.rb
  228. +3 −32 test/mri/webrick/test_httpauth.rb
  229. +3 −3 test/mri/webrick/test_httpproxy.rb
  230. +0 −6 test/mri/webrick/test_httpresponse.rb
  231. +26 −46 test/mri/webrick/test_httpserver.rb
  232. +21 −60 test/mri/webrick/test_server.rb
  233. +23 −30 test/mri/webrick/utils.rb
  234. +1 −1 test/mri/webrick/webrick.cgi
  235. +1 −1 test/mri/webrick/webrick_long_filename.cgi
  236. +51 −95 test/mri/win32ole/test_win32ole_event.rb
  237. +12 −10 test/mri/xmlrpc/test_cookie.rb
  238. +17 −15 test/mri/xmlrpc/test_webrick_server.rb
  239. +14 −21 test/mri/xmlrpc/webrick_testing.rb
@@ -1,5 +1,6 @@
require 'test/unit'
require 'tmpdir'
require_relative "../../ruby/envutil"

class TestBugReporter < Test::Unit::TestCase
def test_bug_reporter_add
@@ -1,4 +1,5 @@
require 'test/unit'
require_relative '../../ruby/envutil'

module Bug
class TestException < Test::Unit::TestCase
@@ -1,4 +1,5 @@
require 'test/unit'
require_relative '../../ruby/envutil'

module Bug
class Bug7802 < RuntimeError

This file was deleted.

@@ -1,4 +1,5 @@
require 'test/unit'
require_relative '../../ruby/envutil'
require '-test-/marshal/usr'

module Bug end

This file was deleted.

@@ -33,67 +33,10 @@ def test_wchar_long
len = str.size * n
WCHARS.each do |enc|
s = Bug::String.new(str.encode(enc))*n
assert_nothing_raised(ArgumentError, enc.name) {s.cstr_term}
assert_nothing_raised(ArgumentError) {s.cstr_term}
s.set_len(s.bytesize / 2)
assert_equal(len / 2, s.size, enc.name)
assert_equal(0, s.cstr_term, enc.name)
end
end

def test_wchar_lstrip!
assert_wchars_term_char(" a") {|s| s.lstrip!}
end

def test_wchar_rstrip!
assert_wchars_term_char("a ") {|s| s.rstrip!}
end

def test_wchar_chop!
assert_wchars_term_char("a\n") {|s| s.chop!}
end

def test_wchar_chomp!
assert_wchars_term_char("a\n") {|s| s.chomp!}
end

def test_wchar_aset
assert_wchars_term_char("a"*30) {|s| s[29,1] = ""}
end

def test_wchar_sub!
assert_wchars_term_char("foobar") {|s| s.sub!(/#{"foo".encode(s.encoding)}/, "")}
end

def test_wchar_delete!
assert_wchars_term_char("foobar") {|s| s.delete!("ao".encode(s.encoding))}
end

def test_wchar_squeeze!
assert_wchars_term_char("foo!") {|s| s.squeeze!}
end

def test_wchar_tr!
assert_wchars_term_char("\u{3042}foobar") {|s|
enc = s.encoding
s.tr!("\u{3042}".encode(enc), "c".encode(enc))
}
end

def test_wchar_tr_s!
assert_wchars_term_char("\u{3042}foobar") {|s|
enc = s.encoding
s.tr_s!("\u{3042}".encode(enc), "c".encode(enc))
}
end

def assert_wchars_term_char(str)
result = {}
WCHARS.map do |enc|
s = Bug::String.new(str.encode(enc))
yield s
c = s.cstr_term_char
result[enc] = c if c
assert_equal(len / 2, s.size)
assert_equal(0, s.cstr_term)
end
assert_empty(result)
end
end
@@ -1,5 +1,6 @@
require 'test/unit'
require "-test-/string/string"
require_relative '../../ruby/envutil'

class Test_StringModifyExpand < Test::Unit::TestCase
def test_modify_expand_memory_leak
@@ -1,5 +1,6 @@
require 'test/unit'
require "-test-/struct"
require_relative '../../ruby/envutil'

class Bug::Struct::Test_Member < Test::Unit::TestCase
S = Bug::Struct.new(:a)

0 comments on commit c1be61a

Please sign in to comment.