1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

20 commits

Author SHA1 Message Date
headius
0a52821396 * test/lib/test/unit.rb: Also rescue EINVAL for older Linux that
raises it in popen. [Bug #10494]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-15 22:33:44 +00:00
nobu
558b9191c0 vm_eval.c: UncaughtThrowError
* vm_eval.c (rb_throw_obj): throw UncaughtThrowError instead of
  ArgumentError.  [Feature #10480]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-15 07:28:08 +00:00
akr
fb2008a73a * test/lib/envutil.rb: Moved from test/ruby/.
* test/lib/find_executable.rb: Ditto.

* test/lib/memory_status.rb: Ditto.

* test/lib/test/unit.rb: require envutil.

* test/: Don't require envutil in test files.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-13 16:05:37 +00:00
nobu
72ce1a4759 test_exception.rb: more tests
* test/ruby/test_exception.rb: more tests for catch and throw.
  catch but no throw, autogenerated tag, and uncaught throw.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-07 12:08:24 +00:00
akr
178bc9a0e7 * test/lib/test/unit.rb: Hide skips by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-10-12 00:24:40 +00:00
nobu
14cea0d712 test/unit.rb: temporary measure againt minitest
* test/lib/test/unit.rb (deal): temporary measure for mixing
  output from the tests of minitest in parallel test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25 06:53:16 +00:00
nobu
535ee0197f test/unit.rb: newline after message
* test/lib/test/unit.rb (deal): print a newline after an error
  message for unknown command not to overwritten by next messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-04 08:00:41 +00:00
naruse
ab606d8f11 exception must make process stop
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-01 00:40:34 +00:00
naruse
7973ff4fe6 show if parallel test-all fails to Marshal.load
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-30 19:28:58 +00:00
akr
1c58954cec Suppress double dots.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-28 06:08:24 +00:00
nobu
9a4f9f3424 reapply r46568 "assertions.rb: refine message"
`exception` is an expected exception class, not the raised instance,
so the result message cannot have any backtraces.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-27 15:44:20 +00:00
naruse
aac7837c76 Revert r46568 "assertions.rb: refine message"
Don't inspect exceptions without backtrace omission for SystemStackError.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-27 06:28:18 +00:00
nobu
545165770b assertions.rb: refine message
* test/lib/test/unit/assertions.rb (assert_raise_with_message):
  refine default message for the exception to be raised.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-26 18:25:13 +00:00
naruse
8784787623 don't remove test results
r46180 removed dots but they express the result of tests: don't remove them.
Moreover I don't understand why `read` is still used.

20140530T200301Z.fail.html.gz

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-31 13:30:48 +00:00
naruse
d4101d636f force_encoding to get the log of failure by Encoding::CompatibilityError
26361118

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 08:52:58 +00:00
naruse
0dea3e1a43 * test/lib/test/unit/parallel.rb (_run_suite): orig_stdout may be nil
though I don't know the reason.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 03:06:47 +00:00
nobu
9ee98ff798 parallel.rb: do not split messages
* test/lib/test/unit/parallel.rb (Test::Unit::Worker#_run_suite):
  get rid of splitting leak checking messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 14:43:15 +00:00
nobu
42c7b5f09b test/unit.rb: reduce error messages
* test/lib/test/unit.rb (non_options): reduce same error messages.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 14:36:40 +00:00
hsbt
35a8580c56 * test/lib/test/unit/test-unit.gemspec: removed needless gemspec file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 05:04:08 +00:00
hsbt
f8c6a5dc02 * test/runner.rb: remove dependency test-unit and minitest
from stdlib when running with test-all.
  [Feature #9711][ruby-core:61890]
* test/testunit/*.rb: ditto.
* test/lib: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-17 06:26:51 +00:00