Commit graph

512 commits

Author SHA1 Message Date
Nobuyoshi Nakada
5f2987d6c2
Fix relative paths from core_assertions.rb 2021-08-04 20:39:12 +09:00
Nobuyoshi Nakada
1f2b3f2529
Remove an extraneous escape
Since a3fb97465d, this string is not inside the here-document.
2021-08-04 16:59:18 +09:00
Nobuyoshi Nakada
b8386f7f7f
Prepend DebugSystem to VCS class only
And revert 24e5f1c982, pepending to
Kernel did not affect the top level methods before 3.0.
2021-07-26 15:44:40 +09:00
Nobuyoshi Nakada
690385014a
Move core_assertions.rb from test/unit
This file contains extended assertions for ruby core which do not
belong to test/unit.
2021-07-11 19:56:53 +09:00
Nobuyoshi Nakada
afd4cfcf22
Try "so" attribute if "smso" is not found 2021-07-06 21:02:40 +09:00
Nobuyoshi Nakada
e724857f42
Show leaked file descriptors only, without cwd, txt, and so on 2021-06-27 21:17:58 +09:00
Nobuyoshi Nakada
3839a8fe79
Narrow the tracing of object allocations to during each test 2021-06-27 21:13:51 +09:00
Nobuyoshi Nakada
fb978fab6d
Tests for MiniTest define anonymous test cases 2021-06-24 20:39:52 +09:00
Nobuyoshi Nakada
e1c3cb9357
test: imply random test order by --seed option 2021-06-24 18:52:35 +09:00
Hiroshi SHIBATA
6e7e9a80ad
Expose assert_all? for ruby/csv repo 2021-06-01 19:38:05 +09:00
Hiroshi SHIBATA
ded7dd9ccc
Use require_relative to use Minitest library for testing.
There is no reason to care for minitest gem.
2021-05-28 11:38:37 +09:00
Hiroshi SHIBATA
adcbae8d49
Removed minitest/mock 2021-05-19 14:24:01 +09:00
Hiroshi SHIBATA
9bd79c2cef
Removed minitest/benchmark 2021-05-18 17:31:43 +09:00
Hiroshi SHIBATA
5a0b89de32
Removed minitest/autorun 2021-05-18 17:31:42 +09:00
Yusuke Endoh
5f8bca3257 tool/lib/minitest/mock.rb: define Object#stub only when not defined
Recently, lib/rubygems/test_case.rb also defines the method.
2021-05-14 18:10:07 +09:00
Hiroshi SHIBATA
010bb0883e
Workaround for make test-tool 2021-05-11 20:08:03 +09:00
Yusuke Endoh
bb8a759f6b Fix a typo of c6a11b865e
It failed to define `refute_path_not_exist`
2021-05-11 19:46:15 +09:00
Hiroshi SHIBATA
c6a11b865e
Alias assert/refute_path_exists for test-unit gem.
It's required at https://github.com/rubygems/rubygems/pull/3141
2021-05-11 19:32:35 +09:00
Nobuyoshi Nakada
07ff1f4b0b
Revert "Extracted AtomicWrite"
This reverts commit 2148ee78a5, mistakenly committed.
2021-03-13 09:14:20 +09:00
Nobuyoshi Nakada
2148ee78a5
Extracted AtomicWrite 2021-03-13 09:10:45 +09:00
Nobuyoshi Nakada
0d29c3179c [ruby/stringio] Include all modules included into Test::Unit::TestCase
Some methods are separated into modules in test-unit now.

d289848994
2021-03-08 09:35:46 +09:00
Nobuyoshi Nakada
21e255913c [ruby/stringio] Pass IOs as separate list for ruby 2.x
74e39858eb
2021-03-08 09:35:25 +09:00
Nobuyoshi Nakada
416956afa6
Set verbose flag at retrying 2021-02-14 17:47:46 +09:00
Nobuyoshi Nakada
dfff1df95c
vcs.rb: update the given option to VCS.detect by keyword arguments 2021-02-08 23:56:19 +09:00
Nobuyoshi Nakada
a0faad38ce
vcs.rb: added base_url keyword option to GIT#export_changelog 2021-02-08 23:56:01 +09:00
Nobuyoshi Nakada
ced09d521c
vcs.rb: improved export_changelog
* arguments are optional
* `path` may be passed as a keyword argument
* `nil` or `"-"` path means stdout
2021-02-08 23:45:51 +09:00
Nobuyoshi Nakada
1e2a8f7c94
vcs.rb: fix for baseruby 2.2 2021-01-26 10:30:29 +09:00
Nobuyoshi Nakada
6963e682f8
vcs.rb: support d command in log-fix 2021-01-26 10:04:12 +09:00
Nobuyoshi Nakada
a56760b908
vcs.rb: allow log-fix to insert an empty line 2021-01-26 09:58:11 +09:00
Nobuyoshi Nakada
6ef761a515 vcs.rb: continue just with warning if failed to fetch notes 2021-01-23 10:07:49 +09:00
Nobuyoshi Nakada
ccd7b7ab9a vcs.rb: include commit info in ChangeLog 2021-01-23 10:07:49 +09:00
Nobuyoshi Nakada
3b631d0f73
Support i command in log-fix 2021-01-21 01:03:01 +09:00
Takashi Kokubun
e1fee7f949
Rename RubyVM::MJIT to RubyVM::JIT
because the name "MJIT" is an internal code name, it's inconsistent with
--jit while they are related to each other, and I want to discourage future
JIT implementation-specific (e.g. MJIT-specific) APIs by this rename.

[Feature #17490]
2021-01-13 22:46:51 -08:00
Nobuyoshi Nakada
590dc06e38 Get rid of defining methods for tests in core classes
Not to interfere in other tests.
2021-01-09 22:38:06 +09:00
Nobuyoshi Nakada
ddacff2b41
Follow up on variations of the development start messages [ci skip] 2020-12-25 17:43:23 +09:00
Nobuyoshi Nakada
fb54574393
Pass keyword options in assert_syntax_error 2020-12-24 01:24:30 +09:00
Kenta Murata
aa856d5077 [ruby/date] Fix envutil for old Ruby
57e25c406a
2020-12-23 18:19:26 +09:00
Hiroshi SHIBATA
61bd28b836
[ruby/date] Workaround for non-ruby repository like ruby/date, flori/json
1ff7fa2d80
2020-12-23 13:53:40 +09:00
Hiroshi SHIBATA
f14aaa2b12
Guard < Ruby 3.0 for the repositories of default gems. 2020-12-23 13:44:47 +09:00
Marc-Andre Lafortune
1ecac8e4d0 Add require_relative option to assert_ractor 2020-12-20 22:00:05 -05:00
Marc-Andre Lafortune
b1b6dbfdc3 assert_ractor tweak. Thanks Nobu 2020-12-19 22:37:27 -05:00
Marc-Andre Lafortune
70f20234b2 Add assert_ractor [Feature #17367] 2020-12-19 17:13:08 -05:00
Jeremy Evans
05313c914b Use category: :deprecated in warnings that are related to deprecation
Also document that both :deprecated and :experimental are supported
:category option values.

The locations where warnings were marked as deprecation warnings
was previously reviewed by shyouhei.

Comment a couple locations where deprecation warnings should probably
be used but are not currently used because deprecation warning
enablement has not occurred at the time they are called
(RUBY_FREE_MIN, RUBY_HEAP_MIN_SLOTS, -K).

Add assert_deprecated_warn to test assertions.  Use this to simplify
some tests, and fix failing tests after marking some warnings with
deprecated category.
2020-12-18 09:54:11 -08:00
Nobuyoshi Nakada
9908177857
test/ruby: Check warning messages at a finer granularity
Instead of suppressing all warnings wholly in each test scripts by
setting `$VERBOSE` to `nil` in `setup` methods.
2020-12-17 20:06:18 +09:00
Takashi Kokubun
aacd2295d0
Debug the command used for gdb dump
It's not working
http://ci.rvm.jp/results/trunk-mjit@phosphorus-docker/3288206. I'm
debugging why.
2020-12-13 23:35:29 -08:00
Takashi Kokubun
246d7e4f1d
Dump a backtrace with gdb
Because Ruby often fails to dump a C backtrace.
2020-12-12 18:46:24 -08:00
Hiroshi SHIBATA
a6a68bae3c
Removed needless gemspec of webrick 2020-12-11 14:16:42 +09:00
Hiroshi SHIBATA
947a5505e5
Bump webrick-1.7.0 for version management with ruby/webrick. 2020-12-11 14:16:42 +09:00
Hiroshi SHIBATA
5dc786bf86 Move webrick library into internal test toolchain 2020-12-10 18:06:25 +09:00
Takashi Kokubun
f1757a88a4
Avoid leaving too many core files in /tmp
for CIs like ci.rvm.jp.
2020-12-03 21:33:35 -08:00