summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-09-28Syntax check of `yield` in the parserNobuyoshi Nakada
2023-09-28Jumps are possible in the top-level loopNobuyoshi Nakada
2023-09-28Suppress void context warnings in verbose modeNobuyoshi Nakada
2023-09-28Suppress void context warningsNobuyoshi Nakada
2023-09-27[PRISM] Implement MatchLastLineNodeeileencodes
This PR implements `MatchLastLineNode` for Prism. Related: ruby/prism#1335
2023-09-27Make {Queue,SizedQueue}#freeze raise TypeErrorJeremy Evans
Fixes [Bug #17146]
2023-09-27Include recently added parse_test code in renameKevin Newton
2023-09-27Rename YARP symbols to prismKevin Newton
2023-09-27Sync to prism rename commitsKevin Newton
2023-09-27Rename YARP filepaths to prism filepathsKevin Newton
2023-09-27Update YARP build targetsKevin Newton
2023-09-27[ruby/yarp] Split up compiler versus visitorKevin Newton
https://github.com/ruby/yarp/commit/2e6baa3f19
2023-09-27Rename compiler test to iseq testKevin Newton
2023-09-27[YARP] Implement regex flagseileencodes
This fixes the TODO in the code that was passing 0 instead of the regex flags.
2023-09-27[YARP] Implemented BlockArgumentNode (#8499)Jemma Issroff
2023-09-27Out of place jumps are valid in `defined?`Nobuyoshi Nakada
2023-09-27Syntax check of `retry` in the parserNobuyoshi Nakada
2023-09-27Fix error token locationNobuyoshi Nakada
2023-09-27Block exits are now syntax error in ripperNobuyoshi Nakada
2023-09-27Syntax check of block exits in the parserNobuyoshi Nakada
2023-09-26[ruby/yarp] Ensure newlines are sorted in newline testKevin Newton
https://github.com/ruby/yarp/commit/3bfefc44c4
2023-09-26[ruby/yarp] Remove visitor usage to not rely on overriding visitKevin Newton
https://github.com/ruby/yarp/commit/6903860981
2023-09-26[ruby/yarp] Check predicate of while and untilHaldun Bayhantopcu
https://github.com/ruby/yarp/commit/f57a6066b5
2023-09-26[ruby/reline] Fix config.rb to File.expand_path $include path inelfham
inputrc (https://github.com/ruby/reline/pull/592) * Fix config.rb to File.expand_path $include path in inputrc * fix bug of test_include_expand_path on Windows https://github.com/ruby/reline/commit/4d34e52d0b
2023-09-26[ruby/irb] Disable pager in show-source testtomoya ishida
(https://github.com/ruby/irb/pull/720) https://github.com/ruby/irb/commit/5669efa4c1
2023-09-26Run crash report test processes without `RUBY_ON_BUG`Nobuyoshi Nakada
These processes are to be crashed, avoid running debugger.
2023-09-26Prevent warnings: "unused literal ignored"Yusuke Endoh
``` [24688/26146] TestParse#test_named_capture_in_block(eval at /home/chkbuild/chkbuild/tmp/build/20230926T063004Z/ruby/test/ruby/test_parse.rb:999):1: warning: unused literal ignored (eval at /home/chkbuild/chkbuild/tmp/build/20230926T063004Z/ruby/test/ruby/test_parse.rb:999):1: warning: unused literal ignored (eval at /home/chkbuild/chkbuild/tmp/build/20230926T063004Z/ruby/test/ruby/test_parse.rb:999):1: warning: unused literal ignored (eval at /home/chkbuild/chkbuild/tmp/build/20230926T063004Z/ruby/test/ruby/test_parse.rb:999):1: warning: unused literal ignored (eval at /home/chkbuild/chkbuild/tmp/build/20230926T063004Z/ruby/test/ruby/test_parse.rb:999):1: warning: unused literal ignored (eval at /home/chkbuild/chkbuild/tmp/build/20230926T063004Z/ruby/test/ruby/test_parse.rb:999):1: warning: possibly useless use of + in void context = 0.00 s ```
2023-09-26Prevent warnings: "unused literal ignored"Yusuke Endoh
The test emits many warnings under `RUBYOPT=-w` ``` [22699/26146] YARP::CompilerTest#test_FloatNode<compiled>:1: warning: unused literal ignored <compiled>:1: warning: unused literal ignored <compiled>:1: warning: unused literal ignored <compiled>:1: warning: unused literal ignored = 0.00 s ```
2023-09-26[Bug #19902] Update the coderange regarding the changed regionNobuyoshi Nakada
2023-09-26Run crash report test processes without `RUBY_ON_BUG`Nobuyoshi Nakada
These processes are to be crashed, avoid running debugger.
2023-09-25[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.81 to 0.9.82. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.81...v0.9.82) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> https://github.com/rubygems/rubygems/commit/780fb19b03
2023-09-25[rubygems/rubygems] Bump rb-sysdependabot[bot]
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.81 to 0.9.82. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.81...v0.9.82) --- updated-dependencies: - dependency-name: rb-sys dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> https://github.com/rubygems/rubygems/commit/f48d03aabd
2023-09-25[ruby/zlib] Workaround: Fix test failures on Ubuntu jammy s390x.Jun Aruga
This commit fixes the test failures on the zlib in Ubuntu jammy s390x. According to the <https://packages.ubuntu.com/jammy-updates/zlib1g> - `zlib_1.2.11.dfsg-2ubuntu9.2.debian.tar.xz`, the zlib deb package is applying the patch 410.patch (madler/zlib#410), and configured by `./configure --dfltcc` on Ubuntu jammy s390x. The `--dfltcc` is to enable the deflate algorithm in hardware. It produces a different (but still valid) compressed byte stream, and causes the test failures in ruby/zlib. As a workaround, set the environment variable `DFLTCC=0` disabling the implementation in zlib on s390x to the failing tests. Note we need to test in a child Ruby process with `assert_separately` to test on the `DFLTCC=0` set by the parent Ruby process. https://github.com/ruby/zlib/commit/9f3b9c470c
2023-09-25[Feature #19790] Rename BUGREPORT_PATH as CRASH_REPORTNobuyoshi Nakada
2023-09-25Invoke the command when RUBY_BUGREPORT_PATH starts with `|`Nobuyoshi Nakada
2023-09-25Redirect to RUBY_BUGREPORT_PATH fileNobuyoshi Nakada
2023-09-24Fix test thread leakageNobuyoshi Nakada
2023-09-23[Bug #19901]Adam Hess
fix leak in module clone Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2023-09-23Fix memory leak in Hash#rehash for ST hashesPeter Zhu
We need to free the old ST table in Hash#rehash. Co-authored-by: Adam Hess <adamhess1991@gmail.com>
2023-09-22[ruby/yarp] Check class name to be a constant path node or a constant read nodeHaldun Bayhantopcu
https://github.com/ruby/yarp/commit/fd7c44f13f
2023-09-22Resync yarp (#8498)Jemma Issroff
* [YARP] Reject numbered parameters in block parameters * [YARP] Do not allow BEGIN except the toplevel --------- Co-authored-by: Haldun Bayhantopcu <haldun@github.com>
2023-09-22[ruby/yarp] Introduce YP_TOKEN_METHOD_NAMEHaldun Bayhantopcu
https://github.com/ruby/yarp/commit/e855bf415c
2023-09-22Magical wait to get rid of deadlock on macOSNobuyoshi Nakada
2023-09-22[ruby/yarp] Fix listener leave event orderKevin Newton
https://github.com/ruby/yarp/commit/1e6e264836
2023-09-22[Bug #19896]Adam Hess
fix memory leak in vm_method This introduces a unified reference_count to clarify who is referencing a method. This also allows us to treat the refinement method as the def owner since it counts itself as a reference Co-authored-by: Peter Zhu <peter@peterzhu.ca>
2023-09-22[ruby/irb] Page show_source's outputStan Lo
(https://github.com/ruby/irb/pull/719) https://github.com/ruby/irb/commit/3cedc5cb62
2023-09-22[YARP] Suppress constant redefinition warningNobuyoshi Nakada
``` <compiled>:1: warning: already initialized constant Bar test/yarp/compiler_test.rb:139: warning: previous definition of Bar was here ```
2023-09-22[ruby/zlib] Add truffleruby-head in CIBenoit Daloze
* The latest release does not have this fix: https://github.com/oracle/truffleruby/commit/c77f8bb35db084c99d1f5b14748267866004222e https://github.com/ruby/zlib/commit/8abc80b994
2023-09-21[YARP] Implement ConstantPathTargetNodeMatt Valentine-House
Co-Authored-By: kddnewton <kevin.newton@shopify.com>
2023-09-21[YARP] Add tests for popped instructions (#8494)Jemma Issroff