summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* [Bug #19016] Handle syntax error in main script like other errorsNobuyoshi Nakada2022-11-201-0/+17
| | | | | So that `SyntaxError#detailed_message` will be used also in the case exiting by such syntax error.
* Avoid a timeout on test_cache_optimization_exponentialTakashi Kokubun2022-11-191-1/+1
| | | | | The timeout seems too short for some CIs. http://rubyci.s3.amazonaws.com/debian11-aarch64/ruby-master/log/20221120T012840Z.fail.html.gz
* [ruby/irb] Push an accidentally uncommitted diffTakashi Kokubun2022-11-201-1/+1
| | | | https://github.com/ruby/irb/commit/7e9f27afd7
* [ruby/irb] Deal with inconsistency with ruby/rubyTakashi Kokubun2022-11-201-0/+4
| | | | https://github.com/ruby/irb/commit/41d5012849
* [ruby/irb] Require missing EnvUtilTakashi Kokubun2022-11-201-0/+4
| | | | https://github.com/ruby/irb/commit/9bb1757b02
* [ruby/irb] Try using a different file nameTakashi Kokubun2022-11-201-1/+1
| | | | | | | hoping to address: https://github.com/ruby/ruby/actions/runs/3506561941/jobs/5873689640 https://github.com/ruby/irb/commit/de9a6b9d00
* [ruby/irb] Require rubygems for ruby/rubyTakashi Kokubun2022-11-201-0/+1
| | | | | | | You can't take rubygems for granted in a default gem. https://github.com/ruby/ruby/actions/runs/3506561943/jobs/5873689466 https://github.com/ruby/irb/commit/58bb3954d0
* Skip TestDRbSSLAry on mswinTakashi Kokubun2022-11-191-0/+4
| | | | | | | | This doesn't seem to stably work on mswin: https://github.com/ruby/ruby/actions/runs/3505363753/jobs/5871633211 For CI stability, it generally seems like a bad idea to run druby tests on Windows, given that it's pretty much unstable on MinGW as well.
* [ruby/irb] Fix CI failure on ruby/rubyTakashi Kokubun2022-11-201-19/+19
| | | | https://github.com/ruby/irb/commit/ea8c716922
* [ruby/irb] Add edit command (https://github.com/ruby/irb/pull/453)Stan Lo2022-11-201-1/+77
| | | | | | | | | | | | | | * Add edit command * Make find_source a public singleton method * Add document for the edit command * Make find_end private * Remove duplicated private https://github.com/ruby/irb/commit/4321674aa7 Co-authored-by: Takashi Kokubun <takashikkbn@gmail.com>
* Add test cases for args forwarding after rest argumentyui-knk2022-11-191-0/+2
|
* Fix io/console test for --with-static-linked-extAlan Wu2022-11-181-1/+3
| | | | | | The tests looks for the .so file, which doesn't exist when the extension is statically linked. In that situation it passes -I to ruby with nothing after it which ate the -rio/console argument.
* Differentiate T_OBJECT shapes from other objectsAaron Patterson2022-11-181-5/+14
| | | | | | | We would like to differentiate types of objects via their shape. This commit adds a special T_OBJECT shape when we allocate an instance of T_OBJECT. This allows us to avoid testing whether an object is an instance of a T_OBJECT or not, we can just check the shape.
* Make anonymous rest arg (*) and block arg (&) accessible from ARGS nodeyui-knk2022-11-181-0/+24
|
* Allow anonymous keyword rest parameter with other keyword parametersShugo Maeda2022-11-182-1/+3
| | | | Fixes [Bug #19132]
* Prevent a "method redefined" warningYusuke Endoh2022-11-181-1/+1
| | | | | | | | http://rubyci.s3.amazonaws.com/ubuntu2004-arm/ruby-master/log/20221118T033003Z.log.html.gz ``` [21350/22024] TestIRB::ExtendCommandTest#test_show_source_end_finder/home/chkbuild/chkbuild/tmp/build/20221118T033003Z/ruby/test/irb/test_cmd.rb:523: warning: method redefined; discarding old show_source_test_method /home/chkbuild/chkbuild/tmp/build/20221118T033003Z/ruby/test/irb/test_cmd.rb:523: warning: previous definition of show_source_test_method was here ```
* Prevent a "warning: assigned but unused variable - s2"Yusuke Endoh2022-11-181-1/+1
|
* Add support for `sockaddr_un` on Windows. (#6513)Samuel Williams2022-11-178-73/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Windows: Fix warning about undefined if_indextoname() * Windows: Fix UNIXSocket on MINGW and make .pair more reliable * Windows: Use nonblock=true for read tests with scheduler * Windows: Move socket detection from File.socket? to File.stat Add S_IFSOCK to Windows and interpret reparse points accordingly. Enable tests that work now. * Windows: Use wide-char functions to UNIXSocket This fixes behaviour with non-ASCII characters. It also fixes deletion of temporary UNIXSocket.pair files. * Windows: Add UNIXSocket tests for specifics of Windows impl. * Windows: fix VC build due to missing _snwprintf Avoid usage of _snwprintf, since it fails linking ruby.dll like so: linking shared-library x64-vcruntime140-ruby320.dll x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol snwprintf x64-vcruntime140-ruby320.def : error LNK2001: unresolved external symbol vsnwprintf_l whereas linking miniruby.exe succeeds. This patch uses snprintf on the UTF-8 string instead. Also remove branch GetWindowsDirectoryW, since it doesn't work. * Windows: Fix dangling symlink test failures Co-authored-by: Lars Kanis <kanis@comcard.de>
* YJIT: Make the code GC test stablerTakashi Kokubun2022-11-171-1/+1
| | | | | | | The first `add_pages` call shouldn't hit Code GC yet; otherwise `compiles` returns false. With the increased code size in runtime_stats itself, it sometimes hits Code GC too early, at least in arm64 that has a large code size.
* Drop Ruby 2.5 supportst00122022-11-172-6/+3
| | | | | Because it has reached EOL for more than 1.5 years and it won't be supported by the next reline version either.
* YJIT: Show YJIT build option in RUBY_DESCRIPTION (#6738)Takashi Kokubun2022-11-161-1/+1
| | | YJIT: Show YJIT profile in RUBY_DESCRIPTION
* [ruby/irb] Improve testing infraStan Lo2022-11-151-0/+1
| | | | | | | | | | | | | | | (https://github.com/ruby/irb/pull/442) * Add test_in_isolation task to run tests in isolation This simulates how tests are run in Ruby CI and can detect some issues before they're merged and break Ruby CI later. * Run test_in_isolation task on CI * Fix TestRaiseNoBacktraceException's setup https://github.com/ruby/irb/commit/51f23c58b0
* Added empty class for test methods in TestIRB casesHiroshi SHIBATA2022-11-151-0/+4
|
* [ruby/irb] Remove duplicated TestInputMethod definitionsst00122022-11-154-83/+29
| | | | https://github.com/ruby/irb/commit/4b831d02e1
* Rename --mjit-min-calls to --mjit-call-threshold (#6731)Takashi Kokubun2022-11-143-37/+37
| | | for consistency with YJIT
* [ruby/error_highlight] Enable tests for TypeError and ArgumentErrorYusuke Endoh2022-11-141-16/+14
| | | | | | These tests were unintentionally disabled by `if false` https://github.com/ruby/error_highlight/commit/fa6d00d80d
* Fix invokebuiltin in Ruby MJITTakashi Kokubun2022-11-131-3/+9
| | | | | https://github.com/ruby/ruby/blob/45fe7f757522ed7d1d3ec754da59d41d45dd6bab/tool/ruby_vm/views/_mjit_compile_invokebuiltin.erb#L21 has not been ported correctly.
* [ruby/bigdecimal] Tweak check_rounding_mode_optionKenta Murata2022-11-131-2/+12
| | | | https://github.com/ruby/bigdecimal/commit/e1c6c9be25
* [ruby/irb] Simplify info command's testsStan Lo2022-11-111-154/+136
| | | | | | (https://github.com/ruby/irb/pull/440) https://github.com/ruby/irb/commit/5942949226
* Merge RubyGems/Bundler master from ee2f8398324af4bc1b95f7565ce2fda98126e026v3_2_0_preview3Hiroshi SHIBATA2022-11-114-10/+10
|
* [rubygems/rubygems] Store last check even when upgrade is not available and ↵Josef Šimánek2022-11-111-2/+73
| | | | | | fix test. https://github.com/rubygems/rubygems/commit/bcffc2b0a5
* [rubygems/rubygems] Use file in XDG_STATE_HOME directory to store last ↵Josef Šimánek2022-11-112-5/+8
| | | | | | update check timestamp. https://github.com/rubygems/rubygems/commit/0fbc4ace8a
* [rubygems/rubygems] Add 'call for update' to RubyGems install command.Josef Šimánek2022-11-113-0/+157
| | | | https://github.com/rubygems/rubygems/commit/05811f8248
* [rubygems/rubygems] github source should default to secure protocolJason Karns2022-11-111-2/+2
| | | | | | | | Bundler 2 switched to secure https here https://github.com/rubygems/rubygems/commit/c2e81f8ff63613871cc8b52653c5e176f8dafde3 Insecure protocols should be avoided to prevent MITM attacks. https://github.com/rubygems/rubygems/commit/758413364a
* Allow a float error for Regexp.timeoutYusuke Endoh2022-11-111-2/+6
| | | | | | | | | | | | | | | | | The tests failed on windows https://github.com/ruby/ruby/actions/runs/3440997073/jobs/5740085169#step:18:62 ``` 1) Failure: TestRegexp#test_s_timeout [D:/a/ruby/ruby/src/test/ruby/test_regexp.rb:1586]: <0.30000000000000004> expected but was <0.3>. 2) Failure: TestRegexp#test_timeout_shorter_than_global [D:/a/ruby/ruby/src/test/ruby/test_regexp.rb:1631]: <0.30000000000000004> expected but was <0.3>. ```
* [ruby/irb] Transform ls's --grep/-G option to keyword argsTakashi Kokubun2022-11-101-0/+38
| | | | | | | | | | | (https://github.com/ruby/irb/pull/437) * Transform ls's --grep/-G option to keyword args * Make --grep less flexible * Support -g instead of --grep * Suppress warnings from symbol aliases
* Run EnvUtil.apply_timeout_scale outside of assert_separatelyYusuke Endoh2022-11-111-10/+6
| | | | It does not work well in assert_separately
* [ruby/racc] Make racc test more flexible (for JRuby).Thomas E. Enebo2022-11-101-0/+2
| | | | | | | | | | JRuby uses these same files for testing racc. The existing logic will not find 'racc' in a JRuby project checkout. This change allows it to work by just assuming 'ruby -S racc' when running tests. This will not change C Ruby's detection when setting up tests (since earlier checks will find racc). https://github.com/ruby/racc/commit/b74ce5e018
* YJIT: Invalidate JIT code only for ISEQ_TRACE_EVENTS (#6695)Takashi Kokubun2022-11-101-0/+48
|
* [ruby/irb] Make $ and @ default aliasesTakashi Kokubun2022-11-101-2/+0
| | | | | | (https://github.com/ruby/irb/pull/438) https://github.com/ruby/irb/commit/0613589476
* Transition shape when object's capacity changesJemma Issroff2022-11-104-30/+34
| | | | | | | | | | | | | | | | This commit adds a `capacity` field to shapes, and adds shape transitions whenever an object's capacity changes. Objects which are allocated out of a bigger size pool will also make a transition from the root shape to the shape with the correct capacity for their size pool when they are allocated. This commit will allow us to remove numiv from objects completely, and will also mean we can guarantee that if two objects share shapes, their IVs are in the same positions (an embedded and extended object cannot share shapes). This will enable us to implement ivar sets in YJIT using object shapes. Co-Authored-By: Aaron Patterson <tenderlove@ruby-lang.org>
* Omit test on IO Buffers which relies on String being embeddedJemma Issroff2022-11-101-1/+5
| | | | | | | | | There is currently a bug ([#19084]) in how extended strings work in IO Buffers. Object Shapes changes will make the string in this test extended on 32 bit machines. Since this behavior is currently broken (unrelated to object shapes) on 32 bit machines, this test will then fail. We preemptively omit it so that this commit can be reverted once the bug is fixed.
* Fix bug in array pack with shared stringsJemma Issroff2022-11-101-0/+6
| | | | | If string literals are long and they become shared, we need to make them independent before we can write to them. [Bug #19116]
* [Bug #19100] Add `init_int32` function to `rb_random_interface_t`Nobuyoshi Nakada2022-11-101-0/+8
| | | | | Distinguish initialization by single word from initialization by array.
* Add version to the interface of Random extensionsNobuyoshi Nakada2022-11-101-4/+22
|
* Update timeout seconds for square testTSUYUSATO Kitsune2022-11-091-1/+1
|
* Update timeout secondsTSUYUSATO Kitsune2022-11-091-1/+1
|
* Fix and add regexp testsTSUYUSATO Kitsune2022-11-091-2/+22
|
* Make pending_interrupt?(Exception) workYusuke Endoh2022-11-091-0/+8
| | | | | | A patch from katsu (Katsuhiro Ueno) [Bug #19110]
* [ruby/irb] Add execute_lines to reduce command tests' boilerplateStan Lo2022-11-081-266/+157
| | | | | | | code (https://github.com/ruby/irb/pull/436) https://github.com/ruby/irb/commit/1595337149