aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Avoid top-level search for nested constant reference from nil in defined?Dylan Thacker-Smith2019-11-131-0/+5
| | | | | | | | | | | | Fixes [Bug #16332] Constant access was changed to no longer allow top-level constant access through `nil`, but `defined?` wasn't changed at the same time to stay consistent. Use a separate defined type to distinguish between a constant referenced from the current lexical scope and one referenced from another namespace.
* Suppress warnings except for when last evaluationaycabta2019-11-131-0/+6
| | | | Co-authored-by: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
* Migrate Wercker MJIT tests to Actions (#2676)Takashi Kokubun2019-11-125-12/+0
| | | | | | | | | | | | | | | | | | | | * Migrate Wercker MJIT tests to Actions * Support pull request for testing * Capitalize other jobs too * Make it a command name for consistency [ci skip] * Remove wercker.yml * Add --jit-verbose=2 for debugging * Install MJIT headers * Separate install for sudo * Trigger build
* Show the name `Kernel#proc` in the warning messageNobuyoshi Nakada2019-11-121-2/+7
|
* Fixed `assert_equal` first argument to be expected.manga_osyo2019-11-121-4/+4
|
* Reline#readline and Reline#readmultiline to private.osyo-manga2019-11-121-2/+6
|
* Added assertions for realpath and realdirpathNobuyoshi Nakada2019-11-121-0/+6
| | | | | It is said that realpath(3) and realdirpath(3) on some platforms may return a relative path.
* Revert "Method reference operator"Nobuyoshi Nakada2019-11-127-73/+3
| | | | | This reverts commit 67c574736912003c377218153f9d3b9c0c96a17b. [Feature #16275]
* Warn on `...` at EOLNobuyoshi Nakada2019-11-121-0/+7
|
* [ruby/bigdecimal] Remove taint checkingJeremy Evans2019-11-121-9/+0
| | | | | | | | This removes the taint checking. Taint support is deprecated in Ruby 2.7 and has no effect. I don't think removing the taint checks in earlier ruby versions will cause any problems. https://github.com/ruby/bigdecimal/commit/1918d466f3
* [ruby/psych] Remove taint supportJeremy Evans2019-11-121-131/+0
| | | | | | | | | | | | Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. I'm not sure if the untaint calls in deduplicate are still needed after the removal of tainting in the parser. If they are not needed, they should be removed. https://github.com/ruby/psych/commit/73c1a2b4e0
* Monitor#exit: check monitor ownership.Koichi Sasada2019-11-121-0/+23
| | | | | Monitor#exit should be called by only onwer Thread. However, there is not check for it.
* Clear current argument name at empty block argument [Bug #16343]Nobuyoshi Nakada2019-11-121-0/+20
|
* test/ruby/test_require.rb: Remove the tests of require with $SAFEYusuke Endoh2019-11-121-55/+0
| | | | | | | | | | The taint mechanism is decided to be removed at 2.7. [Feature #16131] So, this change removes the tests that expects a SecurityError when requiring a file under $SAFE >= 1. The reason why they should be removed in advance is because the upstream of rubygems has already removed a call to "untaint" method, which makes the tests fail.
* Skip test_validate_gemspec unless git installedKazuhiro NISHIYAMA2019-11-111-0/+1
|
* Revert "Warn EOF char in comment"NARUSE, Yui2019-11-112-15/+0
| | | | This reverts commit 69ec3f70fab0c1c537c68fb135cc315181b1d750.
* Revert "Elaborated EOF char message a little"NARUSE, Yui2019-11-112-4/+4
| | | | This reverts commit 6eaac7cfac668d6669be694fd7b723c4982ed218.
* Merge RubyGems 3.1.0.pre3Hiroshi SHIBATA2019-11-1110-65/+157
| | | | | | | | | | | | | | | | | | | * Fix gem pristine not accounting for user installed gems. Pull request #2914 by Luis Sagastume. * Refactor keyword argument test for Ruby 2.7. Pull request #2947 by SHIBATA Hiroshi. * Fix errors at frozen Gem::Version. Pull request #2949 by Nobuyoshi Nakada. * Remove taint usage on Ruby 2.7+. Pull request #2951 by Jeremy Evans. * Check Manifest.txt is up to date. Pull request #2953 by David Rodríguez. * Clarify symlink conditionals in tests. Pull request #2962 by David Rodríguez. * Update command line parsing to work under ps. Pull request #2966 by David Rodríguez. * Properly test `Gem::Specifications.stub_for`. Pull request #2970 by David Rodríguez. * Fix Gem::LOADED_SPECS_MUTEX handling for recursive locking. Pull request #2985 by MSP-Greg.
* Elaborated EOF char message a littleNobuyoshi Nakada2019-11-112-4/+4
|
* Remove binary data at installationNobuyoshi Nakada2019-11-111-4/+4
| | | | | And revert "Relaxed warning assertions", 6f9be8505d172b110ec449478a791d70b9b74afb.
* Relaxed warning assertionsNobuyoshi Nakada2019-11-111-4/+4
|
* Warn EOF char in commentNobuyoshi Nakada2019-11-112-0/+15
|
* Fixed embedded document with EOF charNobuyoshi Nakada2019-11-111-0/+9
|
* Prefer assert_syntax_error and assert_valid_syntaxNobuyoshi Nakada2019-11-112-268/+143
|
* Fix uplevel of test_jitTakashi Kokubun2019-11-101-3/+3
|
* qsymbols and symbols should be colored as SymbolTakashi Kokubun2019-11-101-3/+3
|
* Colorize on_symbols_beg (%I)Takashi Kokubun2019-11-101-0/+8
|
* Colorize string quotes as boldTakashi Kokubun2019-11-101-23/+23
| | | | like pry
* Disallow omission of parentheses/brackets in single line pattern matching ↵Kazuki Tsujimoto2019-11-101-1/+7
| | | | [Feature #16182]
* Test opt_invokebuiltin_delegate_leave in test_jitTakashi Kokubun2019-11-091-0/+9
|
* Support RB_BUILTIN in ISeq#to_aTakashi Kokubun2019-11-092-2/+9
|
* Test invokebuiltin in test_jitTakashi Kokubun2019-11-091-5/+15
| | | | ISeq#to_a is commented out because it's broken now
* Extend sleep duration for SolarisTakashi Kokubun2019-11-091-1/+1
|
* Remove unneeded exec bits from some filesDavid Rodríguez2019-11-095-0/+0
| | | | | | | | | | | | | I noticed that some files in rubygems were executable, and I could think of no reason why they should be. In general, I think ruby files should never have the executable bit set unless they include a shebang, so I run the following command over the whole repo: ```bash find . -name '*.rb' -type f -executable -exec bash -c 'grep -L "^#!" $1 || chmod -x $1' _ {} \; ```
* Fix typosKazuki Tsujimoto2019-11-091-2/+2
|
* Fix passing actual object_id to finalizerJohn Hawthorn2019-11-081-0/+8
| | | | | | | | | | Previously we were passing the memory_id. This was broken previously if compaction was run (which changes the memory_id) and now that object_id is a monotonically increasing number it was always broken. This commit fixes this by defering removal from the object_id table until finalizers have run (for objects with finalizers) and also copying the SEEN_OBJ_ID flag onto the zombie objects.
* Fix typoKazuki Tsujimoto2019-11-081-1/+1
|
* Define Struct#deconstruct_keysKazuki Tsujimoto2019-11-082-0/+36
|
* use builtin for TracePoint.Koichi Sasada2019-11-081-37/+101
| | | | Define TracePoint in trace_point.rb and use __builtin_ syntax.
* Add a counter for compactionAaron Patterson2019-11-071-0/+6
| | | | | Keep track of the number of times the compactor ran. I would like to use this as a way to keep track of inline cache reference updates.
* Use a monotonically increasing number for object_idJohn Hawthorn2019-11-072-90/+8
| | | | | | | | | | | | | | | | | This changes object_id from being based on the objects location in memory (or a nearby memory location in the case of a conflict) to be based on an always increasing number. This number is a Ruby Integer which allows it to overflow the size of a pointer without issue (very unlikely to happen in real programs especially on 64-bit, but a nice guarantee). This changes obj_to_id_tbl and id_to_obj_tbl to both be maps of Ruby objects to Ruby objects (previously they were Ruby object to C integer) which simplifies updating them after compaction as we can run them through gc_update_table_refs. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
* Disallow duplicated pattern variableKazuki Tsujimoto2019-11-071-8/+59
|
* Revert "Use a monotonically increasing number for object_id"Aaron Patterson2019-11-062-8/+90
| | | | This reverts commit bd2b314a05ae9192b3143e1e678a37c370d8a9ce.
* Use a monotonically increasing number for object_idJohn Hawthorn2019-11-062-90/+8
| | | | | | | | | | | | | | | | | This changes object_id from being based on the objects location in memory (or a nearby memory location in the case of a conflict) to be based on an always increasing number. This number is a Ruby Integer which allows it to overflow the size of a pointer without issue (very unlikely to happen in real programs especially on 64-bit, but a nice guarantee). This changes obj_to_id_tbl and id_to_obj_tbl to both be maps of Ruby objects to Ruby objects (previously they were Ruby object to C integer) which simplifies updating them after compaction as we can run them through gc_update_table_refs. Co-authored-by: Aaron Patterson <tenderlove@ruby-lang.org>
* Numbered parameter is an ID_LOCAL now [Bug #16293]Nobuyoshi Nakada2019-11-061-0/+1
|
* Numbered parameter cannot appear outside block now [Bug #16293]Nobuyoshi Nakada2019-11-061-0/+3
|
* Prohibit calling undefined allocator [Bug #16297]Nobuyoshi Nakada2019-11-061-0/+8
|
* Undefine MatchData.allocate [Feature #16294]Nobuyoshi Nakada2019-11-061-0/+5
|
* Assert return value of Readline.readline only if Ruby is before 2.7aycabta2019-11-051-1/+1
|
* Revert "[EXPERIMENTAL] Make Symbol#to_s return a frozen String [Feature #16150]"NARUSE, Yui2019-11-051-3/+1
| | | | This reverts commit 6ffc045a817fbdf04a6945d3c260b55b0fa1fd1e.