summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2023-11-16[ruby/prism] Add macGreek encodingKevin Newton
https://github.com/ruby/prism/commit/c36d3fc647
2023-11-16[ruby/prism] Only run encoding tests on CRubyKevin Newton
https://github.com/ruby/prism/commit/a63acc0629
2023-11-16[ruby/prism] Add macRomania encodingKevin Newton
https://github.com/ruby/prism/commit/bb73801cf4
2023-11-16[ruby/prism] IBM862 encodingKevin Newton
https://github.com/ruby/prism/commit/151698bf86
2023-11-16[ruby/prism] IBM861 encodingKevin Newton
https://github.com/ruby/prism/commit/6d2b59384a
2023-11-16[ruby/prism] IBM860 encodingKevin Newton
https://github.com/ruby/prism/commit/aa6163d77a
2023-11-16[ruby/prism] IBM857 encodingKevin Newton
https://github.com/ruby/prism/commit/8c9b580f84
2023-11-16[ruby/prism] IBM855 encodingKevin Newton
https://github.com/ruby/prism/commit/9354ad1848
2023-11-16[ruby/prism] IBM852 encodingKevin Newton
https://github.com/ruby/prism/commit/45251fcbf1
2023-11-16[ruby/prism] IBM775 encodingKevin Newton
https://github.com/ruby/prism/commit/65175641b1
2023-11-16[ruby/prism] IBM-737 encodingKevin Newton
https://github.com/ruby/prism/commit/af1a665939
2023-11-16[ruby/prism] IBM720 encodingKevin Newton
https://github.com/ruby/prism/commit/fc1f6ea3af
2023-11-16[ruby/prism] IBM437 encodingKevin Newton
https://github.com/ruby/prism/commit/d60329eeb5
2023-11-16[ruby/prism] Add cp855 encodingKevin Newton
https://github.com/ruby/prism/commit/8069d143f5
2023-11-16[ruby/prism] Add cp852 encodingKevin Newton
https://github.com/ruby/prism/commit/ebe83490bf
2023-11-16[ruby/prism] Add remaining windows encodingsKevin Newton
https://github.com/ruby/prism/commit/e77b549a59
2023-11-16[ruby/prism] Add windows-1250 encodingKevin Newton
https://github.com/ruby/prism/commit/a362535ca4
2023-11-16[ruby/prism] Test cp51932Maple Ong
https://github.com/ruby/prism/commit/29ba8cd1f2
2023-11-16[ruby/prism] Fix calls with splat without parenthesisHaldun Bayhantopcu
https://github.com/ruby/prism/commit/d81a77e0e3
2023-11-16[ruby/prism] Add test cases for `in` in `case` conditionTSUYUSATO Kitsune
Fix https://github.com/ruby/prism/pull/1515 It is also fixed by #1807, so this adds only test cases. https://github.com/ruby/prism/commit/a0092f075e
2023-11-16[ruby/rdoc] fix: Fix NoMethodError for `tokens_to_s` methodtoshimaru
Calling `tokens_to_s` gets an error if `token_stream` is nil: ``` undefined method `compact' for nil:NilClass (NoMethodError) ``` So, fall back to an empty array if `@token_stream` is nil. https://github.com/ruby/rdoc/commit/452e4a2600
2023-11-15[ruby/prism] Track the then keyword for conditionalsKevin Newton
https://github.com/ruby/prism/commit/fef0019a25
2023-11-15[rubygems/rubygems] Make temp gem home independent of pwdDavid Rodríguez
https://github.com/rubygems/rubygems/commit/5c36556d2e
2023-11-15Refactor the settings of test-all outYusuke Endoh
test/runner.rb and tool/lib/test/unit/parallel.rb must use the same settings. However, some settings were copied and pasted, while some were added only to test/runner.rb. This changeset creates tool/test/init.rb for all settings of test-unit, which is loaded not only by test/runner.rb but also tool/lib/test/unit/parallel.rb. Background: the GEM_HOME environment variable was removed in test/runner.rb, which prohibit `require "rake"` (note that rake is a bundled gem). However the parallel mode didn't refrect this setting, i.e., `require "rake"` was allowed. This leads to an inconsistency, which actually affected a test test defines s test class *only when* `require "rake"` is successful. (test/rubygems/test_gem_package_task.rb) https://github.com/ruby/ruby/actions/runs/6807729617/job/18511055636#step:8:1714 ``` /home/runner/work/ruby/ruby/src/tool/lib/test/unit.rb:729:in `const_get': uninitialized constant TestGemPackageTask (NameError) suites.map! {|r| ::Object.const_get(r[:testcase])} ^^^^^^^^^^ ```
2023-11-15No need to save `$VERBOSE`Nobuyoshi Nakada
2023-11-15Separate tests for Hash only from tests for Hash and its subclassesNobuyoshi Nakada
2023-11-15Fix IRB tests (#8925)Hiroshi SHIBATA
* Revert "Fixup da2c2931a60" This reverts commit e1978a905a32af2d48b6e9efb6d0fe1656fddc5b. * Revert "Skip Type completion tests related with IRB::VERSION" This reverts commit da2c2931a602da22bc1fd10dc41f5c3a117bf502. * require irb/version to test IRB::VERSION --------- Co-authored-by: tompng <tomoyapenguin@gmail.com>
2023-11-15Fixup da2c2931a60Hiroshi SHIBATA
2023-11-15test: Follow-up fix for #8916Yuta Saito
`test_thread_trace` is also flaky due to the same reason as #8916. https://rubyci.s3.amazonaws.com/centos7/ruby-master/log/20231114T213002Z.fail.html.gz https://rubyci.s3.amazonaws.com/wsl2/ruby-master/log/20231114T090003Z.fail.html.gz
2023-11-15Skip Type completion tests related with IRB::VERSIONHiroshi SHIBATA
2023-11-15Revert "Tests of irb is still broken."Hiroshi SHIBATA
This reverts commit 5398bbcbab702907430ee019d07f5dcf2b0ce4af. We explicitly load rubygems at rubygems_ext.rb https://github.com/rubygems/rubygems/commit/8840d8507be72ff32bcbbdfb14e0b54efb364ffa
2023-11-14Resync prism delete bin/dotKevin Newton
2023-11-14[ruby/prism] Check value expressions on creating a nodeTSUYUSATO Kitsune
https://github.com/ruby/prism/commit/d60948bac3
2023-11-14[ruby/prism] Check value expressions on parsing arguments and assignmentsTSUYUSATO Kitsune
They are corresponding to `arg_value` in `parse.y`. https://github.com/ruby/prism/commit/a4a4834e0d
2023-11-14[ruby/prism] Rename librubyparser to libprismKevin Newton
librubyparser was an artifact of the prototype that was initially named ruby-parser. Instead, this renames it to libprism to be consistent with the actual name. https://github.com/ruby/prism/commit/8600b06811
2023-11-14[ruby/prism] Check value expressions on parsing arguments and assignmentsTSUYUSATO Kitsune
They are corresponding to `arg_value` in `parse.y`. https://github.com/ruby/prism/commit/a4a4834e0d
2023-11-14[ruby/prism] Check value expressions on creating a nodeTSUYUSATO Kitsune
https://github.com/ruby/prism/commit/d60948bac3
2023-11-14[ruby/prism] Check value expressions on parsing arguments and assignmentsTSUYUSATO Kitsune
They are corresponding to `arg_value` in `parse.y`. https://github.com/ruby/prism/commit/a4a4834e0d
2023-11-14[ruby/prism] Add parse_value_expressionTSUYUSATO Kitsune
https://github.com/ruby/prism/commit/37fad74134
2023-11-14[ruby/prism] fix: float suffix at end of fileMike Dalessio
Found by fuzzing. https://github.com/ruby/prism/commit/d77d4fe2b7
2023-11-14[ruby/prism] fix: nested heredoc dedentation use-after-freeMike Dalessio
Because the lex mode may be freed when popped, we need to store off this value for dedentation. https://github.com/ruby/prism/commit/64007322f5 Co-authored-by: Kevin Newton <kddnewton@gmail.com>
2023-11-14[ruby/rdoc] Fix TIDYLINK after bracesNobuyoshi Nakada
(https://github.com/ruby/rdoc/pull/1015) TIDYLINK multi-word label should not include braces. https://github.com/ruby/rdoc/commit/41ad3191e9
2023-11-14test: Assert only events originated from the test_settracefunc.rb test fileYuta Saito
This test suite is flaky on CI, because the test asserts events from finalizers also. Tracing events from finalizers is not deterministic and is not a part of test interests, so this commit changes the test to assert only events originated from the test file itself.
2023-11-14[ruby/prism] fix: Handle zero-length block parameters in invalid RubyMike Dalessio
Found by fuzzing. https://github.com/ruby/prism/commit/4cd6c8cf98
2023-11-13Don't overwrite shape capacity when removing ivarPeter Zhu
Other objects may be using the shape, so we can't change the capacity otherwise the other objects may have a buffer overflow.
2023-11-14test: Check file name in test_thread_add_trace_func alsoYuta Saito
For better assert failure diagnostics.
2023-11-13[ruby/prism] Add tests for error cases on #1791, #1807, and #1810TSUYUSATO Kitsune
https://github.com/ruby/prism/commit/231e965124
2023-11-13[ruby/reline] Fallback to 256color if COLORTERM != truecolortomoya ishida
(https://github.com/ruby/reline/pull/604) * Fallback to 256color if COLORTERM != truecolor * Add Reline::Face.force_truecolor to force truecolor without COLORTERM env https://github.com/ruby/reline/commit/090e1e4df0
2023-11-13Revert "Fix crash caused by concurrent ObjectSpace.dump_all calls"Jean Boussier
This reverts commit 9a62fd3cbae2ebb60e2f9cad782af1ad18db4319.
2023-11-13GVL Instrumentation: pass thread->self as part of event dataJean Boussier
Context: https://github.com/ivoanjo/gvl-tracing/pull/4 Some hooks may want to collect data on a per thread basis. Right now the only way to identify the concerned thread is to use `rb_nativethread_self()` or similar, but even then because of the thread cache or MaNy, two distinct Ruby threads may report the same native thread id. By passing `thread->self`, hooks can use it as a key to store the metadata. NB: Most hooks are executed outside the GVL, so such data collection need to use a thread-safe data-structure, and shouldn't use the reference in other ways from inside the hook. They must also either pin that value or handle compaction.