summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-03-13[ruby/irb] Support inspecting BasicObjectStan Lo
(https://github.com/ruby/irb/pull/541) https://github.com/ruby/irb/commit/1dc2a406a3
2023-03-13[Bug #19476]: correct cache index computation for repetition (#7457)TSUYUSATO Kitsune
Notes: Merged-By: makenowjust <make.just.on@gmail.com>
2023-03-13* remove trailing spaces. [ci skip]git
2023-03-13[Bug #19467] correct cache points and counting failure on ↵TSUYUSATO Kitsune
`OP_ANYCHAR_STAR_PEEK_NEXT` (#7454) Notes: Merged-By: makenowjust <make.just.on@gmail.com>
2023-03-12Add test for linear performanceNobuyoshi Nakada
Notes: Merged: https://github.com/ruby/ruby/pull/7506
2023-03-11RJIT: Handle Mod 10 for CMP r/m64, r64Takashi Kokubun
2023-03-11RJIT: Use lambda constants to match operandsTakashi Kokubun
2023-03-11Move yjit_force_enabled? to JITSupportTakashi Kokubun
for consistency
2023-03-11Remove unused methods from JITSupportTakashi Kokubun
2023-03-11Skip test_udp_server on s390x RHEL 7.1Takashi Kokubun
It seems like it never succeeds on this CI.
2023-03-11[rubygems/rubygems] Added another case of extconf.rbHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/3d0fa3dee8
2023-03-11[rubygems/rubygems] Added test forHiroshi SHIBATA
https://github.com/rubygems/rubygems/pull/6444 https://github.com/rubygems/rubygems/commit/7d6ece5c92
2023-03-10RJIT: Write initial tests for AssemblerTakashi Kokubun
2023-03-10RJIT: Start testing AssemblerTakashi Kokubun
2023-03-10RJIT: Break up and enable test_version (#7495)Takashi Kokubun
Notes: Merged-By: k0kubun <takashikkbn@gmail.com>
2023-03-10Revert "Allow classes and modules to become too complex"Aaron Patterson
This reverts commit 69465df4242f3b2d8e55fbe18d7c45b47b40a626.
2023-03-10[rubygems/rubygems] rubocop -a test/rubygems/test_gem.rbHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/4d20ed7e32
2023-03-10[rubygems/rubygems] Disable side-effect of GEM_HOME configurationHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/c43328ab03
2023-03-10[rubygems/rubygems] Added only missing extensions option into pristine commandHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/cfd0e615d7
2023-03-10Revert and refine tests for uninitialized queueNobuyoshi Nakada
`Queue` and `SizedQueue` still check array members. Only the test of `ConditionVariable` is useless.
2023-03-10Remove stale testsNobuyoshi Nakada
These tests were added at a198bb3929a4562a12b4aa245a297c7d3695149f, when these classes were `Struct`s. Since these classes have been rewritten, these tests no longer make sense.
2023-03-09Allow classes and modules to become too complexHParker
This makes the behavior of classes and modules when there are too many instance variables match the behavior of objects with too many instance variables. Notes: Merged: https://github.com/ruby/ruby/pull/7349
2023-03-09Fix interpreter crash caused by RUBY_INTERNAL_EVENT_NEWOBJ + RactorsKJ Tsanaktsidis
When a Ractor is created whilst a tracepoint for RUBY_INTERNAL_EVENT_NEWOBJ is active, the interpreter crashes. This is because during the early setup of the Ractor, the stdio objects are created, which allocates Ruby objects, which fires the tracepoint. However, the tracepoint machinery tries to dereference the control frame (ec->cfp->pc), which isn't set up yet and so crashes with a null pointer dereference. Fix this by not firing GC tracepoints if cfp isn't yet set up. Notes: Merged: https://github.com/ruby/ruby/pull/5990
2023-03-09[rubygems/rubygems] Ensure that `TempIO` is closedNobuyoshi Nakada
https://github.com/rubygems/rubygems/commit/dc7b9db514
2023-03-09Make sure TestDefaultGems#test_validate_gemspec runs even when Dir.pwd != srcdirlukeg
For instance, when running tests in build directory like: $ make test-all TESTOPTS="../ruby/test" Notes: Merged: https://github.com/ruby/ruby/pull/7478
2023-03-09Remove SIGCHLD `waidpid`. (#7476)Samuel Williams
* Remove `waitpid_lock` and related code. * Remove un-necessary test. * Remove `rb_thread_sleep_interruptible` dead code. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2023-03-08Fix crash when allocating classes with newobj hookPeter Zhu
We need to zero out the whole slot when running the newobj hook for a newly allocated class because the slot could be filled with garbage, which would cause a crash if a GC runs inside of the newobj hook. For example, the following script crashes: ``` require "objspace" GC.stress = true ObjectSpace.trace_object_allocations { 100.times do Class.new end } ``` [Bug #19482] Notes: Merged: https://github.com/ruby/ruby/pull/7464
2023-03-07[rubygems/rubygems] Add TarReader::Entry#seek to seek within the tar file entryMartin Emde
TarReader#each previously implemented a partial version of seek. This code moved to Entry#seek for use from TarReader#each. Entry#close now returns nil instead of true, like IO#close. Closing an Entry now seeks to the end of the Entry, seeking past any remaining zero byte tar file padding and moving the io to the correcty position to read the next file in the archive. Uses seek for Entry#rewind and #pos=, fixing the tar->gzip->tar nested rewind that would break previous to this change. Add Entry.open that behaves more like File.open. https://github.com/rubygems/rubygems/commit/f5149565d5
2023-03-07Use proper memoized var name for Gem.state_home.Josef Šimánek
2023-03-07[rubygems/rubygems] Remove hardcoded master branch referencesDavid Rodríguez
Let RubyGems use the default branch defined by each repo. https://github.com/rubygems/rubygems/commit/54bd3e9ebd
2023-03-07[rubygems/rubygems] Let git source use default cloned repo branchDavid Rodríguez
https://github.com/rubygems/rubygems/commit/d8af770379
2023-03-06s/mjit/rjit/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-03-06s/MJIT/RJIT/Takashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7462
2023-03-07Improve robustness of `io_wait` implementation. (#7456)Samuel Williams
- Restore correct handling of `duration`. - Don't delete from `@readable` or `@writable` unless it was added. - A little more documentation. Notes: Merged-By: ioquatix <samuel@codeotaku.com>
2023-03-06Stop building mjit_build_dir.soTakashi Kokubun
2023-03-05Omit test_version for Cirrus for nowTakashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7448
2023-03-05Remove an obsoleted testTakashi Kokubun
Notes: Merged: https://github.com/ruby/ruby/pull/7448
2023-03-05Skip a failing shape testTakashi Kokubun
2023-03-05Drop existing MJIT testsTakashi Kokubun
2023-03-06[ruby/irb] Improve method completion for string and regexp thattomoya ishida
includes word break characters (https://github.com/ruby/irb/pull/523) * Improve method completion for string and regexp that includes word break characters * Remove completion-test's assert_not_include because candidates no longer include every possible methods * Add comment about string's method completion regexp Co-authored-by: Stan Lo <stan001212@gmail.com> * Add comment about regexp's method completion regexp Co-authored-by: Stan Lo <stan001212@gmail.com> --------- https://github.com/ruby/irb/commit/aa8128c533 Co-authored-by: Stan Lo <stan001212@gmail.com>
2023-03-05[rubygems/rubygems] Introduce Gem::Specification.find_by_full_name for ↵Hiroshi SHIBATA
finding conbination of name and version for gemspec https://github.com/rubygems/rubygems/commit/0430551215
2023-03-04[ruby/irb] Drop chained methods' completion supportStan Lo
(https://github.com/ruby/irb/pull/529) Consider completion for this example: `foo.bar.b` Without type information, it is hard to know the return value of the `bar` method, so the current implementation interates through `ObjectSpace` to get all possible candidates for the second method. In small projects, the performance and accuracy are acceptable. But in bigger projects, the performance is unacceptable and the accuracy is mostly poor. So this commit drops the support for chained methods' completion.
2023-03-04[ruby/reline] Fix completion with multilinetomoya ishida
(https://github.com/ruby/reline/pull/513) https://github.com/ruby/reline/commit/d76c482c5f
2023-03-03[ruby/irb] Remove no longer necessary TruffleRuby test exclusions.Kevin Menard
(https://github.com/ruby/irb/pull/527) https://github.com/ruby/irb/commit/8473d0bc0f Co-authored-by: Stan Lo <stan.lo@shopify.com>
2023-03-03[ruby/irb] Avoid slow symbol completion when completion target is antomoya ishida
empty symbol (https://github.com/ruby/irb/pull/534) https://github.com/ruby/irb/commit/35697f3ef3
2023-03-03[ruby/irb] Fix prompt test not to change STDIO.external_encodingtomoya ishida
(https://github.com/ruby/irb/pull/535) https://github.com/ruby/irb/commit/09f16259db
2023-03-03[Bug #19471] `Regexp.compile` should handle keyword argumentsNobuyoshi Nakada
As well as `Regexp.new`, it should pass keyword arguments to the `Regexp#initialize` method. Notes: Merged: https://github.com/ruby/ruby/pull/7431
2023-03-03[rubygems/rubygems] Fix warning about ambiguous `/`David Rodríguez
``` /path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:745: warning: ambiguity between regexp and two divisions: wrap regexp in parentheses or add a space after `/' operator ``` https://github.com/rubygems/rubygems/commit/e6a538b5c8
2023-03-03[rubygems/rubygems] Fix warnings about unused variableDavid Rodríguez
``` /path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:180: warning: assigned but unused variable - platforms ``` https://github.com/rubygems/rubygems/commit/7e022cb5e3
2023-03-03[rubygems/rubygems] Fix warning about ambiguous `*`David Rodríguez
``` /path/to/rubygems/test/rubygems/test_gem_commands_exec_command.rb:42: warning: `*' interpreted as argument prefix ``` https://github.com/rubygems/rubygems/commit/0806ebf4e0