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
3ec72f078c
* test/openssl/utils.rb (start_server): Don't close sockets before
...
threads finished.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-01 14:12:11 +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
akr
d03315d84a
* configure.in (dirfd): Check function.
...
* dir.c (dir_fileno): New method.
[ruby-dev:48265] [Feature #9880 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-04 15:54:04 +00:00
nobu
3b26b3898e
leakchecker.rb: temporary measure againt WEBrick
...
* test/lib/leakchecker.rb (LeakChecker#find_threads): temporary
measure for unrestartable WEBrick::Utils::TimeoutHandler::Thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-25 06:53:27 +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
98a2dfe7f6
minitest/unit.rb: flush messages
...
* test/lib/minitest/unit.rb (MiniTest::Unit#_run_suite): flush
messages after each tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-23 06:23:05 +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
nobu
02ddcb4b66
leakchecker.rb: MiniTest::Unit.output
...
* test/lib/leakchecker.rb (LeakChecker#puts): send output to
MiniTest::Unit.output, not to be mixed with parallel test
commands.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-07-02 07:59:20 +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
naruse
b105cbc809
suppress warnings: assigned but unused variable
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-30 10:11:02 +00:00
akr
7361eb9462
inspect IO objects before closed IO object test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-28 12:51:48 +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
hsbt
767358108e
* test/with_different_ofs.rb: move into test library directory.
...
* test/csv/base.rb: fix require path for with_different_ofs.rb.
* test/digest/test_digest_extend.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-26 09:27:22 +00:00
hsbt
4af87bd672
* test/profile_test_all.rb: move into test library directory.
...
* test/runner.rb: fix require path for profile_test_all.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-26 09:16:56 +00:00
ko1
2aa6f9c2b7
* test/lib/tracepointchecker.rb: add to check TracePoint healthiness.
...
* test/runner.rb: use it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-20 08:22:09 +00:00
akr
6c6f9b19b4
* test/lib/leakchecker.rb: Leak checker extracted from
...
test/lib/minitest/unit.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-31 13:31:32 +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.
http://u64.rubyci.org/~chkbuild/ruby-trunk/log/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
akr
40ec552861
* test/lib/minitest/unit.rb: Check Tempfile leaks for each test method
...
again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 23:32:19 +00:00
akr
283e5d5aab
* test/lib/minitest/unit.rb (check_fd_leak): Sort the inspected
...
objects list for a FD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 12:01:09 +00:00
akr
e03e2b95a0
* test/lib/minitest/unit.rb (check_fd_leak): Try GC to delete leaked
...
FDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 09:08:23 +00:00
naruse
d4101d636f
force_encoding to get the log of failure by Encoding::CompatibilityError
...
https://travis-ci.org/ruby/ruby/jobs/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
nobu
bb1fb1167e
minitest/unit.rb: defer requiring -test-
...
* test/lib/minitest/unit.rb (find_fds): defer requiring a library
under "-test-" until needed, or can't work in other (installed)
ruby. grep doesn't need separated map.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 06:27:23 +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
akr
83ead3c4a7
* ext/-test-/dir: Dir#fileno implemented.
...
* test/lib/minitest/unit.rb (find_fds): Don't return the fd used to
scan /proc/$$/fd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-29 22:28:47 +00:00
akr
b519ce9a8a
* test/lib/minitest/unit.rb (capture_subprocess_io): Close fds.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-29 13:26:02 +00:00
akr
9b612d382d
* test/lib/minitest/unit.rb: Use Tempfile#close! instead of
...
Tempfile#unlink to close file descriptors.
* test/openssl/test_config.rb: Ditto.
* test/ruby/test_io.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 15:49:13 +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
akr
1c35277c2b
* io.c (rb_io_autoclose_p): Don't raise on frozen IO.
...
* test/lib/minitest/unit.rb: IO#autoclose? may raise IOError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 10:09:55 +00:00
akr
dbd239a7aa
* test/lib/minitest/unit.rb: Show leaked file descriptors.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 03:24:52 +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
nobu
fd372dc8a2
minitest/unit.rb: fix leaking tempfile
...
* test/lib/minitest/unit.rb (capture_subprocess_io): opened files
can not be unlinked on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 03:42:27 +00:00
akr
1902f5fa25
* test/lib/minitest/unit.rb: Show Finished threads line-by-line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 23:00:04 +00:00
akr
c8660d8966
Show leaked threads line-by-line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 16:16:38 +00:00
akr
b5d3b55bb7
* test/lib/minitest/unit.rb: Show leaked tempfiles line-by-line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 16:03:23 +00:00
akr
8559c4c125
* test/lib/minitest/unit.rb (MiniTest::Assertions#diff): Remove
...
tempfiles.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 14:16:02 +00:00
akr
6f2b1d6e82
* test/lib/minitest/unit.rb: Check tempfile leak for each test class.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 13:44:05 +00:00
akr
540ffb3abd
* test/lib/minitest/unit.rb: Less ObjectSpace.each_object(Tempfile)
...
invocation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 08:15:08 +00:00
akr
70c15b19fa
* test/lib/minitest/unit.rb: Use Thread.list instead of
...
ObjectSpace.each_object(Thread).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 07:58:02 +00:00
akr
36c9605a6e
* test/lib/minitest/unit.rb: Sort leaked threads and tempfiles.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 03:34:27 +00:00
akr
0be4ec01cd
* test/lib/minitest/unit.rb: Show leakes threads and tempfiles.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-25 00:41:18 +00:00
hsbt
ff9c54a32d
* test/lib/minitest/.document: removed unused configuration. [ci skip]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 13:29:40 +00:00
akr
1e2374f1e9
* test/lib/minitest/spec.rb: Unused file removed.
...
* test/lib/minitest/autorun.rb: Don't require minitest/spec.
* test/lib/minitest/benchmark.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 10:20:41 +00:00
akr
36f3ee6dc8
* test/lib/minitest/unit.rb (parallelize_me!): Removed.
...
This fixes the line-by-line structure of the test result in verbose
mode. [ruby-core:54905]
* test/lib/minitest/parallel_each.rb: Removed.
* test/minitest/test_minitest_mock.rb: Don't call parallelize_me!.
* test/minitest/test_minitest_spec.rb: Ditto.
* test/minitest/test_minitest_unit.rb: Ditto.
Tests for parallel feature removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 07:09:29 +00:00
akr
e30e8702a3
* test/lib/minitest/hell.rb: Unused file removed.
...
* test/lib/minitest/pride.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-24 06:29:23 +00:00