aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* keep proc on the stack so it does not moveAaron Patterson2020-10-161-2/+6
|
* test/rinda/test_rinda.rb: Add more debugging codeYusuke Endoh2020-10-171-0/+25
| | | | in addition to de5e8d0e3bc3cc39487ffc9d9c15642b6881cd54
* test/rinda/test_rinda.rb: try debugging TestRingServer#test_do_replyYusuke Endoh2020-10-161-1/+8
| | | | | | | | | | | | | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/rhel8/ruby-master/log/20201016T063003Z.fail.html.gz ``` 1) Error: Rinda::TestRingServer#test_do_reply: Timeout::Error: timeout /home/chkbuild/chkbuild/tmp/build/20201016T063003Z/ruby/test/rinda/test_rinda.rb:837:in `sleep' /home/chkbuild/chkbuild/tmp/build/20201016T063003Z/ruby/test/rinda/test_rinda.rb:837:in `wait_for' /home/chkbuild/chkbuild/tmp/build/20201016T063003Z/ruby/test/rinda/test_rinda.rb:659:in `_test_do_reply' /home/chkbuild/chkbuild/tmp/build/20201016T063003Z/ruby/test/rinda/test_rinda.rb:643:in `block in test_do_reply' /home/chkbuild/chkbuild/tmp/build/20201016T063003Z/ruby/test/rinda/test_rinda.rb:807:in `with_timeout' /home/chkbuild/chkbuild/tmp/build/20201016T063003Z/ruby/test/rinda/test_rinda.rb:643:in `test_do_reply' ```
* test/ruby/test_syntax.rb: avoid "warning: assigned but unused variable"Yusuke Endoh2020-10-161-1/+1
|
* Adjust sp for `if true or ...`/`if false and ...`wanabe2020-10-161-0/+5
|
* Adjust sp for `x = false; y = (return until x unless x)` [Bug #16695]wanabe2020-10-161-0/+9
|
* Check encoding name to replicateNobuyoshi Nakada2020-10-152-3/+9
| | | | https://hackerone.com/reports/954433
* Merge rubygems-3.2.0.rc.2Hiroshi SHIBATA2020-10-155-23/+18
|
* remove uneffective testKoichi Sasada2020-10-141-25/+0
| | | | | RubyVM.stat[:global_method_state] is no longer available so this test doesn't check any more.
* ruby_vm_global_method_state is no longer needed.Koichi Sasada2020-10-141-2/+2
| | | | Now ruby_vm_global_method_state is not used so let's remove it.
* test/ruby/test_fiber.rb: Suppress "assigned but unused variable" warningsYusuke Endoh2020-10-131-4/+2
|
* relax Fiber#transfer's restrictionKoichi Sasada2020-10-121-16/+87
| | | | | | | | | | | | | | | | | | | | | | | | | Using Fiber#transfer with Fiber#resume for a same Fiber is limited (once Fiber#transfer is called for a fiber, the fiber can not be resumed more). This restriction was introduced to protect the resume/yield chain, but we realized that it is too much to protect the chain. Instead of the current restriction, we introduce some other protections. (1) can not transfer to the resuming fiber. (2) can not transfer to the yielding fiber. (3) can not resume transferred fiber. (4) can not yield from not-resumed fiber. [Bug #17221] Also at the end of a transferred fiber, it had continued on root fiber. However, if the root fiber resumed a fiber (and that fiber can resumed another fiber), this behavior also breaks the resume/yield chain. So at the end of a transferred fiber, switch to the edge of resume chain from root fiber. For example, root fiber resumed f1 and f1 resumed f2, transferred to f3 and f3 terminated, then continue from the fiber f2 (it was continued from root fiber without this patch).
* Make the test suite pass on real Android/Termux environmentYusuke Endoh2020-10-123-4/+27
| | | | Attempting to create a hard link raises EACCES
* bignum.c (rb_int_powm): Integer#pow(0, 1) should return 0Yusuke Endoh2020-10-121-0/+20
| | | | ... instead of 1 because it requires "modulo 1". [Bug #17257]
* Prohibit setter method names in all kinds of endless methodsNobuyoshi Nakada2020-10-122-7/+50
| | | | Also unwrap NODE_RIPPER to check the method name.
* [ruby/io-console] Fix timeout type error (#18)Nobuyoshi Nakada2020-10-111-0/+4
| | | | | | | | | | | | | | | | | Fixed TypeError when IO#getch timed out `rb_io_wait` returns a bit-flags Integer representing available events, or Qfalse if timed out. Also the result of `NUM2INT` is not a `VALUE`. ``` $ ./bin/ruby -v -rio/console -e "p IO.console.getch(intr: true, time: 0.1)" ruby 3.0.0dev (2020-10-09T20:27:30Z master 5ea2ea74cc) [x64-mingw32] -e:1:in `getch': no implicit conversion of false into Integer (TypeError) from -e:1:in `<main>' ``` https://github.com/ruby/io-console/commit/3bdfaf62df
* [lib/ostruct] Fix Marshal loadingMarc-Andre Lafortune2020-10-061-0/+6
|
* Remove system method for E2E testing because depends on ruby commandaycabta2020-10-051-54/+75
|
* Show stdout and stderr when history tests failaycabta2020-10-051-32/+31
|
* Fix assert_ruby_status usage in 174ae0f5775cc7af7d197963a8f87b7d1972c268Kazuhiro NISHIYAMA2020-10-031-1/+1
|
* Remove known use-after-poison bugNobuyoshi Nakada2020-10-031-0/+4
| | | | | 9eda6547812cbda23a73ba3b2620520b0de2bdd6 was fixed by b9488accf9e2cbf5f7c47b42b3eb23469f0aa58d.
* Fix ObjectSpace.dump(obj, output: :stdout)Kazuhiro NISHIYAMA2020-10-031-7/+14
| | | | | | | RDoc says `ObjectSpace.dump(obj, output: :stdout) # => nil`, but it returns STDOUT since fbba6bd4e3dff7a61965208fecae908f10c4edbe. I think it is unintentional change.
* Ensure that the comparison succeeded [Bug #17205]Nobuyoshi Nakada2020-10-021-0/+21
|
* Refined assertions for better failure messagesNobuyoshi Nakada2020-10-011-4/+4
|
* strip trailing spaces [ci skip]Nobuyoshi Nakada2020-10-011-1/+1
|
* Remove `Thread.scheduler` from public interface.Samuel Williams2020-10-011-7/+6
| | | | | | It's implementation is equivalent to: Thread.current.scheduler unless Thread.current.blocking?
* Raise an exception if the scheduler was already closed.Samuel Williams2020-10-011-0/+2
|
* Don't call `Scheduler#close` if it doesn't exist.Samuel Williams2020-10-011-0/+8
|
* stop Ractor test in test-allKoichi Sasada2020-10-011-0/+3
| | | | | | | | Ractor changes the interpreter's running mode so now it should not use in test-all process which running with many other tests. Test with a separating process is one idea, but I'm not sure the ruby/ostruct can use this trick.
* [ruby/ostruct] Improved YAML serialization.Marc-Andre Lafortune2020-09-301-0/+21
| | | | Patch adapted from Pietro Monteiro [Fixes bug#8382]
* [ruby/ostruct] Add test that frozen OpenStructs are Ractor-shareableMarc-Andre Lafortune2020-09-301-0/+11
|
* [ruby/ostruct] Protect subclass' methods and our bang methods.Marc-Andre Lafortune2020-09-301-1/+23
| | | | Internally, use only bang methods
* [ruby/ostruct] Avoid calling initializeMarc-Andre Lafortune2020-09-301-0/+9
|
* Unfreeze string-literal-only interpolated string-literalNobuyoshi Nakada2020-09-301-1/+1
| | | | [Feature #17104]
* Remove unneeded `begin` and `end`Kazuhiro NISHIYAMA2020-09-301-6/+4
|
* Fix `Leaked tempfile`sKazuhiro NISHIYAMA2020-09-301-15/+3
| | | | | | | | | | | | | | | http://rubyci.s3.amazonaws.com/debian10/ruby-master/log/20200930T033004Z.diff.html.gz ``` [n/n] JSONCommonInterfaceTest#test_load = <elapsed> s [n/n] JSONCommonInterfaceTest#test_load_file = <elapsed> s +Leaked tempfile: JSONCommonInterfaceTest#test_load_file: #<Tempfile:<build-dir>/tmp/20200930-7601-ptnv6i (closed)> [n/n] JSONCommonInterfaceTest#test_load_file! = <elapsed> s +Leaked tempfile: JSONCommonInterfaceTest#test_load_file!: #<Tempfile:<build-dir>/tmp/20200930-7601-1la6m9 (closed)> [n/n] JSONCommonInterfaceTest#test_load_file_with_option = <elapsed> s +Leaked tempfile: JSONCommonInterfaceTest#test_load_file_with_option: #<Tempfile:<build-dir>/tmp/20200930-7601-blf9hz (closed)> [n/n] JSONCommonInterfaceTest#test_load_file_with_option! = <elapsed> s +Leaked tempfile: JSONCommonInterfaceTest#test_load_file_with_option!: #<Tempfile:<build-dir>/tmp/20200930-7601-b5gsdb (closed)> ```
* Fix order of operations during `rb_ec_finalize`.Samuel Williams2020-09-301-0/+14
|
* Fix unsigned int overflow in error message for chrPeter Zhu2020-09-301-0/+1
| | | | | | | | | | | | | | | | | | The error message has an integer overflow because it treats an unsigned int as a signed int. Before: ``` > 3_000_000_000.chr -1294967296 out of char range (RangeError) ``` After: ``` > 3_000_000_000.chr 3000000000 out of char range (RangeError) ``` Redmine ticket: https://bugs.ruby-lang.org/issues/17186
* test/racc/test_racc_command.rb: prevent a warningYusuke Endoh2020-09-291-1/+1
| | | | | | | http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200929T003003Z.log.html.gz ``` warning: ambiguous first argument; put parentheses or a space even after `/' operator ```
* Pass ASAN options to child environmentsAaron Patterson2020-09-281-0/+1
| | | | | | I want to work with ASAN, but some child environments are not inheriting the ASAN options I'm using. This commit passes them to child environments if specified
* Make Warning.warn accept only category keywordJeremy Evans2020-09-281-2/+2
| | | | | | | In general accepting arbitrary keywords is a bad idea unless you are delegating keywords or acting on arbitrary keywords. In this case, the category keyword is ignored, and it's less error prone to not ignore all keywords.
* Switch conflicting chdir warning to RuntimeErrorJeremy Evans2020-09-281-2/+28
| | | | | | | | The documentation already stated this was an error in one case (when it was previously a warning). Describe the other case, where chdir without block is called inside block passed to chdir. Fixes [Bug #15661]
* Remove unnecessary executable bit [ci skip]Kazuhiro NISHIYAMA2020-09-282-0/+0
|
* [Fixes #137] Improve reportingMarc-Andre Lafortune2020-09-282-0/+29
|
* [rubygems/rubygems] Add writable check for cache dirxndcn2020-09-281-0/+3
| | | | | | Sometimes "install_dir/cache" directory is not writable although "install_dir" is writable. https://github.com/rubygems/rubygems/commit/665221cb69
* [rubygems/rubygems] Add test for "gem update --system --silent"Ellen Marie Dash2020-09-281-0/+28
| | | | https://github.com/rubygems/rubygems/commit/c3fb0db930
* Disallow downgrades to too old versionsDavid Rodríguez2020-09-281-0/+20
| | | | | Consider the version original included with each ruby as the minimum supported version.
* [rubygems/rubygems] Deprecate --dryrunbronzdoc2020-09-281-0/+11
| | | | https://github.com/rubygems/rubygems/commit/1715610648
* [rubygems/rubygems] Make --dry-run flag consistent across rubygems commandsbronzdoc2020-09-281-1/+1
| | | | https://github.com/rubygems/rubygems/commit/addc644cad
* Added `--platform` option to `build` commandNobuyoshi Nakada2020-09-281-4/+28
|