aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* date_parse.c: avoid copyingNobuyoshi Nakada2019-08-121-1/+2
| | | | | * ext/date/date_parse.c (date_zone_to_diff): get rid of copying the whole argument string.
* Add another test for frame omitted inliningTakashi Kokubun2019-08-121-0/+16
|
* Use capture_output instead of capture_io.Hiroshi SHIBATA2019-08-1113-87/+87
| | | | It's preparation for migrating test-unit on upstream.
* Adjust indent [ci skip]Nobuyoshi Nakada2019-08-111-1/+1
|
* Warn instance variable `E`Nobuyoshi Nakada2019-08-101-2/+6
| | | | It is not dumped, as it is a short alias for `:encoding`.
* Fix parsing of mutiple assignment with rescue modifierJeremy Evans2019-08-091-0/+5
| | | | | | | | | | | | | | | | | | | Single assignment with rescue modifier applies rescue to the RHS: a = raise rescue 1 # a = (raise rescue 1) Previously, multiple assignment with rescue modifier applied rescue to the entire expression: a, b = raise rescue [1, 2] # (a, b = raise) rescue [1, 2] This makes multiple assignment with rescue modifier consistent with single assignment with rescue modifier, applying rescue to the RHS: a, b = raise rescue [1, 2] # a, b = (raise rescue [1, 2]) Implements [Feature #8239] Fixes [Bug #8279]
* restore timeoutKoichi Sasada2019-08-091-3/+1
|
* extend timeout to debug.Koichi Sasada2019-08-091-1/+3
|
* double memory limit on MJIT.Koichi Sasada2019-08-091-1/+2
| | | | | On test with MJIT, sometimes it fails like: http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/2189967
* introduce RCLASS_CLONED flag for inline cache.Koichi Sasada2019-08-092-9/+46
| | | | | | | | | Methods on duplicated class/module refer same constant inline cache (IC). Constant access lookup should be done for cloned class/modules but inline cache doesn't check it. To check it, this patch introduce new RCLASS_CLONED flag which are set when if class/module is cloned (both orig and dst). [Bug #15877]
* Iseq#to_binary: Add support for NoMatchingPatternError and TypeErrorAlan Wu2019-08-091-0/+10
| | | | | | | | | | Binary dumping the iseq for `case foo in []; end` used to crash as there was no handling for these exception classes. Pattern matching generates these classes as operands to `putobject`. [Bug #16088] Closes: https://github.com/ruby/ruby/pull/2325
* Should require without wrapper moduleNobuyoshi Nakada2019-08-091-0/+13
|
* Reduce unnecessary EXEC_TAG in requireNobuyoshi Nakada2019-08-081-2/+2
|
* solve "duplicate :raise event" in require too [Bug #15877]Nobuyoshi Nakada2019-08-081-1/+7
|
* solve "duplicate :raise event" [Bug #15877]Koichi Sasada2019-08-081-0/+13
| | | | | | | Without this patch, "raise" event invoked twice when raise an exception in "load"ed script. This patch by danielwaterworth (Daniel Waterworth). [Bug #15877]
* Aliases capture_output to capture_io for test-unit compatiblity.Hiroshi SHIBATA2019-08-084-9/+5
|
* Fix Date#step testNobuyoshi Nakada2019-08-071-2/+4
| | | | The document states that "the limit should be a date object".
* Revert "Don't echo results of assignment expressions"aycabta2019-08-062-126/+0
| | | | This reverts commit 1ee88c51b3c319b74b69540e111e4a1c24833cad.
* Don't echo results of assignment expressionsSteven Willis2019-08-062-0/+126
|
* Removing duplicated assertions on test_array.rb - MINUS methodEspartaco Palma2019-08-061-4/+0
| | | | Closes: https://github.com/ruby/ruby/pull/1790
* Improve same directory detection in FileUtilsJustin Collins2019-08-061-0/+10
| | | | Closes: https://github.com/ruby/ruby/pull/1425
* Give up stabilizing TestProcess on Travis osxTakashi Kokubun2019-08-062-2/+9
| | | | | | | | | | They have been too unstable. Revert "Extend sleep before sending USR1 in TestProcess" This reverts commit aaf69a8ba866193863a7eafe5c6044844bd71bc3. Revert "Extend sleep before sending USR1 in TestProcess" This reverts commit 076f3fcf11a061394d3d5f8c671512df1e983023.
* [rubygems/rubygems] Use the standard RUBY_ENGINE_VERSION instead of ↵Benoit Daloze2019-08-052-31/+20
| | | | | | | | | JRUBY_VERSION * RUBY_ENGINE and RUBY_ENGINE_VERSION are defined on every modern Ruby. * There is no such constant as TRUFFLERUBY_VERSION or RBX_VERSION. https://github.com/rubygems/rubygems/commit/431d0aefdd
* [rubygems/rubygems] Fix error handling of #with_engine_versionBenoit Daloze2019-08-051-12/+13
| | | | | | | * If settings constants fail, show that exception instead of getting another one due to variables being unset and hiding the real cause. https://github.com/rubygems/rubygems/commit/f38cd67874
* [rubygems/rubygems] Cleanup after testing `rake package`David Rodríguez2019-08-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes it happens to me that my local tests start failing because I pull some file removals or renames into my local copy, and those are still present on my last copy of pkg/. In those cases, the test about `rake package` will fail with something like the following: ```` Failure: TestRakePackage#test_builds_ok [/home/deivid/Code/rubygems/test/rubygems/test_rake_package.rb:13]: Expected `rake package` to work, but got errors: ``` cd pkg/rubygems-update-3.1.0.pre1 WARNING: See http://guides.rubygems.org/specification-reference/ for help rake aborted! Gem::InvalidSpecificationException: ["test/rubygems/test_rake_package.rb"] are not files Tasks: TOP => package => gem => pkg/rubygems-update-3.1.0.pre1.gem (See full trace by running task with --trace) ``` If you have added or removed files, make sure you run `rake update_manifest` to update the `Manifest.txt` accordingly. Expected: true Actual: false ```` So, make sure, package is always built from scratch. https://github.com/rubygems/rubygems/commit/4e2cc9eb26
* [rubygems/rubygems] Revert cadb66037d9b58c80fc795f39384d533229a1f73bronzdoc2019-08-051-0/+18
| | | | https://github.com/rubygems/rubygems/commit/5c3158d975
* Expand the timeout of `test_pstore_files_are_accessed_as_binary_files`NAKAMURA Usaku2019-08-051-1/+1
| | | | Sometimes causes timeout error on mswin CI
* Check if signaledNobuyoshi Nakada2019-08-051-2/+4
|
* Refined assertion messagesNobuyoshi Nakada2019-08-051-11/+9
|
* Fixed assertionNobuyoshi Nakada2019-08-051-1/+1
| | | | The regexp should be expected to match the error message.
* Extend sleep before sending USR1 in TestProcessTakashi Kokubun2019-08-041-1/+1
| | | | | | | just like 076f3fcf11a061394d3d5f8c671512df1e983023. This test also hanged on Travis osx https://travis-ci.org/ruby/ruby/jobs/567547060
* Revert "Skip test_race_exception on MJIT for now"Takashi Kokubun2019-08-041-1/+0
| | | | | | | | | | | This reverts commit 7a75baa6e294473f02da512c99f7ef1f76b2d83c. Revert "Defer skip to avoid errors on ensure" This reverts commit adfc8d6dbadbccef27d6ec78022650840c7604cc. because 76e2370f132f83c16c9de39a0a9356579f364527 is hoped to fix the problem.
* [ruby/rexml] xpath: add missing value conversions for equality and ↵Kouhei Sutou2019-08-042-84/+256
| | | | | | | | | | relational expressions GitHub: fix #18 Reported by Mirko Budszuhn. Thanks!!! https://github.com/ruby/rexml/commit/0dca2a2ba0
* [ruby/rexml] xpath number: fix a bug that false is converted to NaNKouhei Sutou2019-08-041-25/+28
| | | | | | | | | | GitHub: fix #18 It must be 0. Reported by Mirko Budszuhn. Thanks!!! https://github.com/ruby/rexml/commit/b48f3afa3b
* [ruby/rexml] xpath local_name: fix a bug that nil is returned for ↵Kouhei Sutou2019-08-044-0/+45
| | | | | | | | nonexistent case It must be an empty string. https://github.com/ruby/rexml/commit/81bc7cd4f5
* [ruby/rexml] xpath boolean: implementKouhei Sutou2019-08-041-0/+75
| | | | https://github.com/ruby/rexml/commit/feb8ddb1ec
* [ruby/rexml] xpath: fix a bug for equality or relational expressionsKouhei Sutou2019-08-042-4/+92
| | | | | | | | | | | GitHub: fix #17 There is a bug when they are used against node set. They should return boolean value but they returned node set. Reported by Mirko Budszuhn. Thanks!!! https://github.com/ruby/rexml/commit/a02bf38440
* [ruby/rexml] Message less confusing error to human (#16)ujihisa2019-08-041-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | * Message less confusing error to human * Problem: Following error message is not helpful, because you have to reason that '' actually means it's in the top-level, and the 'div' (not '</div>') is an end tag require "rexml/parsers/lightparser" REXML::Parsers::LightParser.new('</div>').parse #=> Missing end tag for '' (got 'div') * Solution: add a special case in error handling just to change the error message require "rexml/parsers/lightparser" REXML::Parsers::LightParser.new('</div>').parse #=> Unexpected top-level end tag (got 'div') * Refactor by removing unnecessary `md` check * Thanks @a_matsuda to review this at asakusa.rb! https://github.com/ruby/rexml/commit/f6528d4477
* [ruby/rexml] test: compare with real elementKouhei Sutou2019-08-041-2/+5
| | | | https://github.com/ruby/rexml/commit/9f2908de2e
* [ruby/rexml] Fix crash with nil XPath variables (#13)Alyssa Ross2019-08-041-0/+19
| | | | | Patch by Alyssa Ross. Thanks!!! https://github.com/ruby/rexml/commit/2a53c54f58
* [ruby/rexml] Fix attribute's default namespace behaviorKouhei Sutou2019-08-041-1/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE: It's a backward incompatible change. If we have any serious problems with this change, we may revert this change. The XML namespace specification says the default namespace doesn't apply to attribute names but it does in REXML without this change: https://www.w3.org/TR/xml-names/#uniqAttrs > the default namespace does not apply to attribute names REXML reports a parse error for the following XML that is described as a valid XML in the XML nsmaspace specification without this change: <!-- http://www.w3.org is bound to n1 and is the default --> <x xmlns:n1="http://www.w3.org" xmlns="http://www.w3.org" > <good a="1" b="2" /> <good a="1" n1:a="2" /> </x> If attribute doesn't have prefix, the attribute should return "" for both #prefix and #namespace. https://github.com/ruby/rexml/commit/9e4fd552bc
* [ruby/rexml] xpath: fix a bug that no namespace attribute isn't matched with ↵Kouhei Sutou2019-08-041-1/+9
| | | | | | | | | | prefix [ruby-list:50733] Reported by Yasuhiro KIMURA. Thanks!!! https://github.com/ruby/rexml/commit/8f3c5c176a
* Defer skip to avoid errors on ensureTakashi Kokubun2019-08-041-1/+1
|
* Skip test_race_exception on MJIT for nowTakashi Kokubun2019-08-041-0/+1
| | | | | somehow the test fails only on Wercker in CIs triggered by GitHub. Actually rubyci and ci.rvm.jp also have issues too, though.
* change call CGI methods from :: to .Semyon Pupkov2019-08-041-31/+31
| | | | Closes: https://github.com/ruby/ruby/pull/1749
* Fix dangling path name from fstringNobuyoshi Nakada2019-08-031-0/+11
| | | | | | | | * parse.y (yycompile): make sure in advance that the `__FILE__` object shares a fstring, to get rid of dangling path name. Fixed up 53e9908d8afc7f03109b0aafd1698ab35f512b05. [Bug #16041] * vm_eval.c (eval_make_iseq): ditto.
* Revert "Remove opt_nil_p test to remove warning for now"Yusuke Endoh2019-08-021-0/+7
| | | | This reverts commit a1727e43af18c122c4d7adfa603f895fdc8f3df1.
* Remove opt_nil_p test to remove warning for nowTakashi Kokubun2019-08-021-7/+0
|
* Fix uplevelNobuyoshi Nakada2019-08-021-4/+4
|
* Make attr* methods define public methods if self in caller is not same as ↵Jeremy Evans2019-08-011-0/+26
| | | | | | | | | | | | receiver Previously, attr* methods could be private even if not in the private section of a class/module block. This uses the same approach that ruby started using for define_method in 1fc33199736f316dd71d0c551edbf514528ddde6. Fixes [Bug #4537]