aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Add `node_id_for_backtrace_location` functioneileencodes2022-10-311-0/+13
| | | | | | | | | | | | | | | We want to use error highlight with eval'd code, specifically ERB templates. We're able to recover the generated code for eval'd templates and can get a parse tree for the ERB generated code, but we don't have a way to get the node id from the backtrace location. So we can't pass the right node into error highlight. This patch gives us an API to get the node id from the backtrace location so we can find the node in the AST. Error Highlight PR: https://github.com/ruby/error_highlight/pull/26 Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
* [ruby/optparse] Add tests for `load(into:)`Nobuyoshi Nakada2022-10-291-0/+2
| | | | https://github.com/ruby/optparse/commit/51f7e060ee
* [ruby/optparse] Add tests for `OptionParser#load`Nobuyoshi Nakada2022-10-291-0/+139
| | | | https://github.com/ruby/optparse/commit/fb34a1d3a3
* [ruby/irb] Do not make non-existent XDG directory on startNobuyoshi Nakada2022-10-281-0/+3
| | | | | | | (https://github.com/ruby/irb/pull/357) https://github.com/ruby/irb/commit/298b134792
* [ruby/irb] Update regarding NO_COLOR valueNobuyoshi Nakada2022-10-281-0/+4
| | | | | | | | | | | | https://no-color.org has been updated (jcs/no_color#83): > Command-line software which adds ANSI color to its output by default should check for a `NO_COLOR` environment variable that, when present and **not an empty string** (regardless of its value), prevents the addition of ANSI color. https://github.com/ruby/irb/commit/46e0f7e370 Co-authored-by: Stan Lo <stan001212@gmail.com>
* [ruby/irb] Suppress sequence to inspect asian ambiguous width Nobuyoshi Nakada2022-10-281-1/+11
| | | | https://github.com/ruby/irb/commit/a7097c5b80
* [ruby/irb] Suppress "switching inspect mode" messages Nobuyoshi Nakada2022-10-281-0/+2
| | | | https://github.com/ruby/irb/commit/565eeb3c19
* [ruby/irb] Fix warnings in test_cmd.rbPeter Zhu2022-10-271-2/+2
| | | | | | | | Fixes this warning: warning: assigned but unused variable - err https://github.com/ruby/irb/commit/298fcb57a3
* [ruby/irb] Remove unnecessary test setup Stan Lo2022-10-271-4/+0
|
* [ruby/irb] Suppress warning for test which uses a locale non-existing on ↵Benoit Daloze2022-10-271-0/+2
| | | | GitHub Actions
* [ruby/irb] Remove unecesary and harmful pend for TruffleRuby in ↵Benoit Daloze2022-10-271-2/+0
| | | | | | | | TestRaiseNoBacktraceException * Specifically the second one causes `$HOME` to be unset, which breaks `File.expand_path('~')`. https://github.com/ruby/irb/commit/61963305f5
* [ruby/irb] Add missing require Stan Lo2022-10-271-0/+2
|
* [ruby/irb] Add test for IRB::InputCompletor::PerfectMatchedProcst00122022-10-271-4/+90
| | | | | | | | This proc displays rdoc document when the input matches certain symbols perfectly, like "String". It's commonly triggered with autocompletion but only has 1 test case. So this commit increases its test coverage. https://github.com/ruby/irb/commit/d85d719313
* [ruby/tmpdir] Warnings should contain the environment variable name Nobuyoshi Nakada2022-10-271-3/+3
|
* YJIT: Support nil and blockparamproxy as blockarg in send (#6492)Matthew Draper2022-10-261-3/+5
| | | | | Co-authored-by: John Hawthorn <john@hawthorn.email> Co-authored-by: John Hawthorn <john@hawthorn.email>
* [ruby/irb] Remove unnecessary warning check on help commandStan Lo2022-10-261-5/+0
| | | | | | | | It's not an intentional behavior of the command and it behaves differently in different environments. So checking it actually brings more problem than benefit. https://github.com/ruby/irb/commit/b3203bc784
* [ruby/irb] Rename test_helper.rb to helper.rbPeter Zhu2022-10-263-2/+2
| | | | | | | | | The name test_helper.rb conflicts with the test_helper.rb in JSON, causing build failures. This commit renames test_helper.rb to helper.rb. https://github.com/ruby/irb/commit/b6a92bf6b3 Co-Authored-By: Stan Lo <stan001212@gmail.com>
* [ruby/irb] Don't insert new methods to Test::Unit::TestCasest00122022-10-263-2/+22
| | | | | | Ruby CI runs irb and other Ruby core/stdlib tests in the same process. So adding irb-specific helper to Test::Unit::TestCase could potentially pollute other components' tests and should be avoided.
* [ruby/irb] Suppress warningsStan Lo2022-10-261-2/+2
| | | | Co-authored-by: Peter Zhu <peter@peterzhu.ca>
* [ruby/irb] Add test for the help commandst00122022-10-261-0/+51
|
* [ruby/irb] Extract without_rdoc helperst00122022-10-261-13/+0
|
* [ruby/irb] Make sure Encoding's defaults are restored Stan Lo2022-10-251-2/+5
|
* YJIT: GC and recompile all code pages (#6406)Takashi Kokubun2022-10-251-3/+118
| | | | | when it fails to allocate a new page. Co-authored-by: Alan Wu <alansi.xingwu@shopify.com>
* [ruby/tmpdir] Ignore empty environment variablesNobuyoshi Nakada2022-10-251-0/+12
| | | | | | Fixes https://github.com/ruby/tmpdir/pull/17 https://github.com/ruby/tmpdir/commit/a79c727a5d
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-10-252-7/+7
| | | | | | | | | | | | | | | | | | | /test/rubygems/test_gem_ext_cargo_builder/custom_name Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34) --- 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/6af714b02c
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-10-242-7/+7
| | | | | | | | | | | | | | | | | Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34. - [Release notes](https://github.com/oxidize-rb/rb-sys/releases) - [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34) --- 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/1882ad876f
* [ruby/irb] Restore standard input/output encodings after input method tests Stan Lo2022-10-241-0/+12
|
* Split tests for `Array#shuffle` and `Array#sample`Nobuyoshi Nakada2022-10-241-1/+21
|
* [ruby/irb] Add a test case to cover rdoc unintalled scenario st00122022-10-241-0/+31
|
* [ruby/irb] Add tests for RelineInputMethod st00122022-10-241-0/+58
|
* Fix per-instance Regexp timeout (#6621)Yusuke Endoh2022-10-241-8/+65
| | | | | | | | | | Fix per-instance Regexp timeout This makes it follow what was decided in [Bug #19055]: * `Regexp.new(str, timeout: nil)` should respect the global timeout * `Regexp.new(str, timeout: huge_val)` should use the maximum value that can be represented in the internal representation * `Regexp.new(str, timeout: 0 or negative value)` should raise an error
* Reduce type check of arguments at Complex creationNobuyoshi Nakada2022-10-231-5/+24
|
* Update Complex.polar with Complex testsNobuyoshi Nakada2022-10-231-4/+10
|
* Rename `iv_count` on shapes to `next_iv_index`Jemma Issroff2022-10-211-4/+4
| | | | | | `iv_count` is a misleading name because when IVs are unset, the new shape doesn't decrement this value. `next_iv_count` is an accurate, and more descriptive name.
* Remove unused class serialJemma Issroff2022-10-211-2/+0
| | | | | | | | Before object shapes, we were using class serial to invalidate inline caches. Now that we use shape_id for inline cache keys, the class serial is unnecessary. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* Range#size returns nil for (.."a") and (nil..)Yusuke Endoh2022-10-211-0/+3
| | | | Fixes [Bug #18983]
* Unmark Internal IV test as pendingJemma Issroff2022-10-201-1/+0
| | | | Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* Add Class#attached_objectUfuk Kayserilioglu2022-10-201-0/+25
| | | | | | | Implements [Feature #12084] Returns the object for which the receiver is the singleton class, or raises TypeError if the receiver is not a singleton class.
* push dummy frame for loading processKoichi Sasada2022-10-201-0/+59
| | | | | | | | | | | | | This patch pushes dummy frames when loading code for the profiling purpose. The following methods push a dummy frame: * `Kernel#require` * `Kernel#load` * `RubyVM::InstructionSequence.compile_file` * `RubyVM::InstructionSequence.load_from_binary` https://bugs.ruby-lang.org/issues/18559
* [Bug #18998] Honor `#to_str` next to `#to_int` in `Kernel#Integer`Nobuyoshi Nakada2022-10-201-0/+7
|
* Avoid missed wakeup with fiber scheduler and Fiber.blocking. (#6588)Samuel Williams2022-10-202-0/+53
| | | * Ensure that blocked fibers don't prevent valid wakeups.
* Transition frozen string to frozen root shapeJemma Issroff2022-10-191-0/+12
| | | | Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* [rubygems/rubygems] Use [] instead of double-quotes Hiroshi SHIBATA2022-10-191-1/+1
|
* Bypass git submodule add/update with git config protocol.file.allow=always ↵Hiroshi SHIBATA2022-10-191-0/+5
| | | | | | option. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Add support for anonymous shared IO buffers. (#6580)Samuel Williams2022-10-191-0/+15
|
* [ruby/fiddle] Add support for linker script on LinuxSutou Kouhei2022-10-181-0/+34
| | | | | | | | GitHub: fix https://github.com/ruby/fiddle/pull/107 Reported by nicholas a. evans. Thanks!!! https://github.com/ruby/fiddle/commit/49ea1490df
* [ruby/fiddle] Fix filenames for glibc SO files on alpha and ia64John Paul Adrian Glaubitz2022-10-181-2/+8
| | | | | | | | (https://github.com/ruby/fiddle/pull/105) Fixes [Bug #18645] https://github.com/ruby/fiddle/commit/9a5a1dab1d
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-10-1827-476/+470
| | | | https://github.com/rubygems/rubygems/commit/6214d00b2315ed37c76b1fbc1c72f61f92ba5a65
* [rubygems/rubygems] TestGemSecuritySigner#test_sign: Correct the expectation ↵Jarek Prokop2022-10-181-6/+6
| | | | | | for new cert. https://github.com/rubygems/rubygems/commit/bed360410d
* [rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature ↵Jarek Prokop2022-10-181-1/+1
| | | | | | algorithm. https://github.com/rubygems/rubygems/commit/e2d533591c