Koichi Sasada
228b3e43be
check GC.enable'd status
...
Check GC.enable'd status before and after test execution.
Write this checker in gc_checker.rb, it was renamed from
gc_compact_checker.rb.
2021-08-05 17:11:50 +09:00
Yusuke Endoh
405644f38c
Revert "Removed extinit.o from main programs"
...
This reverts commit ac86fcbfd0
.
This change broke "--disable-shared --with-static-linked-ext".
2021-08-05 14:48:24 +09:00
Nobuyoshi Nakada
3bb6410914
Use equivalent __FILE__
2021-08-05 14:15:30 +09:00
Nobuyoshi Nakada
594c3df9a9
Tests for Windows can run only on Windows
...
Should not directly require "reline/windows.rb" which should be
loaded by "reline.rb".
2021-08-05 13:58:07 +09:00
git
bc8bc072f4
* 2021-08-05 [ci skip]
2021-08-05 05:11:29 +09:00
Peter Zhu
1fd0a2e4a6
Reenable GC at the end of test
...
The test disables GC but never reenables it. Before this patch, running
all tests would have a peak RSS in the main process of >4GB. After this
patch, peak RSS in the main process is <500MB.
2021-08-04 16:11:08 -04:00
Nobuyoshi Nakada
5f2987d6c2
Fix relative paths from core_assertions.rb
2021-08-04 20:39:12 +09:00
aycabta
6e55facdb3
Run interrupt test except on Windows
2021-08-04 18:29:42 +09:00
aycabta
aba10ea61e
Add a load path to require 'helper'
2021-08-04 18:29:42 +09:00
aycabta
335c12826a
Show the log of test_interrupt_in_other_thread when failed
2021-08-04 18:29:42 +09:00
aycabta
17ef7a98ef
Check the existence of the test classes
2021-08-04 18:29:42 +09:00
aycabta
5ca0a51ffd
Add a test for handling SIGINT in other thread
2021-08-04 18:29:42 +09:00
aycabta
de93b8b069
Handle SIGINT in other thread correctly
...
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-08-04 18:29:42 +09:00
aycabta
5bb7b57129
Use Symbol of signal for trap
2021-08-04 18:29:42 +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
git
6e8bbabc2b
* 2021-08-04 [ci skip]
2021-08-04 05:39:21 +09:00
Peter Zhu
c463a5e008
Fix indentation in string.c
...
7 spaces were used for 2 levels of indentation. This commit changes it
to use 8 spaces.
2021-08-03 16:39:02 -04:00
Samuel Williams
2d4f29e77e
Fix potential hang when joining threads.
...
If the thread termination invokes user code after `th->status` becomes
`THREAD_KILLED`, and the user unblock function causes that `th->status` to
become something else (e.g. `THREAD_RUNNING`), threads waiting in
`thread_join_sleep` will hang forever. We move the unblock function call
to before the thread status is updated, and allow threads to join as soon
as `th->value` becomes defined.
This reverts commit 6505c77501
.
2021-08-03 22:23:48 +12:00
Nobuyoshi Nakada
785c70e764
[DOC] mention how the command is passed to the shell [ci skip]
2021-08-03 18:16:32 +09:00
git
b5e94916bf
* 2021-08-03 [ci skip]
2021-08-03 12:10:56 +09:00
Nobuyoshi Nakada
4c3140d60f
Add keyrest to ruby2_keywords parameters [Bug #18011 ]
2021-08-03 10:56:50 +09:00
Hiroshi SHIBATA
731315bf55
Use codeql-config.yml for codeql-action/init
2021-08-02 17:23:18 +09:00
Hiroshi SHIBATA
0292ec9b8a
Removed paths-ignore because it's not affect with cpp
2021-08-02 17:23:18 +09:00
Hiroshi SHIBATA
954852f7a6
Removed unnecessary configuration for the latest version of actions/checkout
2021-08-02 17:23:18 +09:00
Hiroshi SHIBATA
8b466ea5fc
Use ${{}}
for if statement
2021-08-02 12:39:50 +09:00
Troy Chance
7f4e86804d
Fix documentation of #<=> and #casecmp [ci skip]
...
Descriptions for return values of -1 and 1 were reversed.
2021-08-02 12:09:07 +09:00
S.H
378e8cdad6
Using RBOOL macro
2021-08-02 12:06:44 +09:00
git
3688b47671
* 2021-08-02 [ci skip]
2021-08-02 10:18:46 +09:00
Nobuyoshi Nakada
4453280bb4
Stop infinite object allocation to get rid of OOM killer
2021-08-02 10:18:22 +09:00
Nobuyoshi Nakada
605421f4eb
gcc 10.3.0 says "__VA_OPT__ is not available until C++2a"
2021-08-01 09:54:36 +09:00
git
d99b10acb7
* 2021-08-01 [ci skip]
2021-08-01 06:49:23 +09:00
Nobuyoshi Nakada
3b52230452
Define functions using rb_wait_for_single_fd [Bug #18046 ]
2021-08-01 06:49:07 +09:00
Masataka Pocke Kuwabara
242f024bcb
[ruby/error_highlight] Keep it work if paren exists after receiver
...
b79d679bbd
2021-07-31 22:15:16 +09:00
git
4ab5281601
* 2021-07-31 [ci skip]
2021-07-31 11:40:45 +09:00
Nobuyoshi Nakada
e294beb731
[DOC] Fix Process::exec documentation [ci skip]
...
Shell reserved words and special built-in commands can be placed
at only the beginning of the command (except for leading white
spaces).
2021-07-31 11:38:27 +09:00
Nobuyoshi Nakada
01d9e7f26c
[DOC] Fix Process::exec documentation [ci skip]
...
The environment variable `RUBYSHELL` is used only on Windows, as
well as `COMSPEC`.
2021-07-30 19:36:17 +09:00
Benoit Daloze
ff6c176028
Tweak rb_str_modify_expand() + read() spec to try to find out why it fails on some platforms
...
* Use a longer string as <= 23 characters it's embedded on CRuby and
the value of rb_str_capacity() is implementation-specific.
2021-07-30 11:36:20 +02:00
Nobuyoshi Nakada
fd96503f7b
Fix bundled gems locations
...
Changed since 55bf0ef1aa
.
2021-07-30 12:21:38 +09:00
Jeremy Evans
2aecb95acb
Skip test_ensure_after_nomemoryerror
...
This test appears to cause failures in some environments.
2021-07-29 18:54:20 -07:00
Jeremy Evans
9931e2f509
Improve performance of Integer#digits
...
This speeds up performance by multiple orders of magnitude for
large integers.
Fixes [Bug #14391 ]
Co-authored-by: tompng (tomoya ishida) <tomoyapenguin@gmail.com>
2021-07-29 15:19:12 -07:00
Jeremy Evans
64ac984129
Make RubyVM::AbstractSyntaxTree.of raise for method/proc created in eval
...
This changes Thread::Location::Backtrace#absolute_path to return
nil for methods/procs defined in eval. If the realpath of an iseq
is nil, that indicates it was defined in eval, in which case you
cannot use RubyVM::AbstractSyntaxTree.of.
Fixes [Bug #16983 ]
Co-authored-by: Koichi Sasada <ko1@atdot.net>
2021-07-29 13:51:03 -07:00
Benoit Daloze
6998d75824
Update to ruby/spec@b65d01f
2021-07-29 22:11:21 +02:00
Benoit Daloze
15d05f8120
Update to ruby/mspec@9542a88
2021-07-29 22:11:19 +02:00
aycabta
41e2ab88c3
Use test-unit assertions
2021-07-30 02:56:29 +09:00
aycabta
1c9cb9da8f
[ruby/reline] Support Terminfo on Cygwin and macOS
...
b0b75fcd27
2021-07-30 02:27:02 +09:00
aycabta
f1b5cb7e5d
[ruby/reline] Don't check the existence of Terminfo on Windows
...
320f09055c
2021-07-30 02:27:02 +09:00
aycabta
b158b4666d
[ruby/reline] Check TYPE_VARIADIC
...
8e62e46e33
2021-07-30 02:27:02 +09:00
aycabta
0f496b9b29
[ruby/reline] Define StringWithTiparm instead of singular method
...
de234dc875
2021-07-30 02:27:02 +09:00
SilverPhoenix99
5b9f3ed326
[ruby/reline] Fixed Ctrl+Enter key in Windows.
...
0c38e39023
2021-07-30 02:27:02 +09:00
aycabta
46c6da9c37
[ruby/reline] Check empty .inputrc
...
b60b3b76cd
2021-07-30 02:27:02 +09:00