aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core
Commit message (Collapse)AuthorAgeFilesLines
* Fixed misspellingsNobuyoshi Nakada2019-12-209-14/+14
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* Test `Thread#to_s` when used from to_s_spec.rbNobuyoshi Nakada2019-12-112-11/+12
|
* `Thread#to_s` has been added at ruby 2.5Nobuyoshi Nakada2019-12-112-8/+4
|
* Thread#to_s is not same as #inspect on old version.Koichi Sasada2019-12-111-0/+5
| | | | Thread#to_s returns simple Object#to_s until Ruby 2.4.
* fix for old MRI versionsKoichi Sasada2019-12-111-1/+2
|
* Make Thread#to_s consistent with Method and Proc to_sJean byroot Boussier2019-12-113-40/+61
|
* Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"NARUSE, Yui2019-12-041-28/+12
| | | | | This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf. Revert [Feature #13083]
* Revert "Revert nil error and adding deprecation message"NARUSE, Yui2019-12-041-16/+4
| | | | This reverts commit 452bee3ee8d68059fabd9b1c7a75661b14e3933e.
* Revert "Improve warning message"NARUSE, Yui2019-12-041-2/+2
| | | | This reverts commit 31110d820cc1258cbc84b46ecc65b254c7d5529a.
* Revert "Fix warnings in Regexp#{match,match?} specs"NARUSE, Yui2019-12-041-10/+6
| | | | This reverts commit 782d1b8fb0a039cedef9ad9c94f432dad51901e6.
* Make more attempts to check for the precision of Process.timesBenoit Daloze2019-12-021-2/+2
| | | | | * Process.clock_getres specs use 10_000 but that's quite slow for the Process.times spec.
* Fix random failure on getusage-missing environmentsTakashi Kokubun2019-12-021-32/+4
| | | | | | | | | | | `* 1e6` makes a spurious result about floating point number's precision. ``` irb(main)[01:0]> 16.028 => 16.028 irb(main)[02:0]> (16.028 * 1e6) => 16027999.999999998 ```
* Debug random failure of ruby-spec on ci.rvm.jpTakashi Kokubun2019-12-011-4/+32
|
* Update to ruby/spec@dcf4955Benoit Daloze2019-12-011-0/+21
|
* [ruby/spec] Fix failures with LC_ALL=CNobuyoshi Nakada2019-12-0110-17/+41
| | | | | https://github.com/ruby/spec/commit/51047687c0 https://github.com/ruby/spec/commit/2b87b467cc
* Skip if getrusage is not supportedTakashi Kokubun2019-11-301-0/+5
| | | | | | | 1243255c3a36433041012b6107a5ac48658a0895 broke ci.rvm.jp tests like http://ci.rvm.jp/results/trunk_clang_39@silicon-docker/2445098. 253232c028a5565dbeecc05fab5e81b35ab58bcc works only if getrusage is supported.
* Update to ruby/spec@4eec3dcBenoit Daloze2019-11-3080-329/+1097
|
* check interrupts at each frame pop timing.Koichi Sasada2019-11-291-0/+3
| | | | | | | | | | | | | | | | | | Asynchronous events such as signal trap, finalization timing, thread switching and so on are managed by "interrupt_flag". Ruby's threads check this flag periodically and if a thread does not check this flag, above events doesn't happen. This checking is CHECK_INTS() (related) macro and it is placed at some places (laeve instruction and so on). However, at the end of C methods, C blocks (IMEMO_IFUNC) etc there are no checking and it can introduce uninterruptible thread. To modify this situation, we decide to place CHECK_INTS() at vm_pop_frame(). It increases interrupt checking points. [Bug #16366] This patch can introduce unexpected events...
* Deprecate taint/trust and related methods, and make the methods no-opsJeremy Evans2019-11-1890-1464/+1844
| | | | | | This removes the related tests, and puts the related specs behind version guards. This affects all code in lib, including some libraries that may want to support older versions of Ruby.
* Show the name `Kernel#proc` in the warning messageNobuyoshi Nakada2019-11-121-1/+1
|
* Exclude some clocks on armv8 tooBenoit Daloze2019-11-061-1/+1
| | | | * See https://bugs.ruby-lang.org/issues/16234#note-16
* Fix spawn_spec.rb for Travis arm64 environment.Jun Aruga2019-11-061-3/+13
| | | | | | | | | | | | | | | | | The process group id (/proc/[pid]/stat 5th field) is 0 in the Travis arm64 environment. This is a case where it is available. $ cat /proc/4543/stat 4543 (ruby) S 4525 4525 1384 34818 4525 4194304 37443 1754841 0 0 366 105 2291 391 20 0 3 0 1381328 1428127744 11475 18446744073709551615 94195983785984 94195986670225 140728933833312 0 0 0 0 0 1107394127 0 0 0 17 2 0 0 1 0 0 94195987686512 94195987708942 94196017770496 140728933835483 140728933835595 140728933835595 140728933842904 0 This is a case where it is not available in Travis arm64 environment. $ cat /proc/19179/stat 19179 (ruby) S 19160 0 0 0 -1 4194560 37618 1710547 313 163 770 665 5206 1439 20 0 2 0 17529566 1196347392 10319 18446744073709551615 187650811428864 187650815023116 281474602721280 0 0 0 0 4096 1107390031 0 0 0 17 22 0 0 0 0 0 187650815091456 187650815114064 187651414974464 281474602725080 281474602725211 281474602725211 281474602729420 0 See "man proc" for detail.
* Revert "[EXPERIMENTAL] Make Symbol#to_s return a frozen String [Feature #16150]"NARUSE, Yui2019-11-051-17/+0
| | | | This reverts commit 6ffc045a817fbdf04a6945d3c260b55b0fa1fd1e.
* Fix warnings in Regexp#{match,match?} specsBenoit Daloze2019-11-031-6/+10
|
* Improve warning messageKenichi Kamiya2019-11-031-2/+2
| | | | https://github.com/ruby/ruby/pull/2637#discussion_r341812475
* Revert nil error and adding deprecation messageKenichi Kamiya2019-11-031-4/+16
|
* Update to ruby/spec@28a728bBenoit Daloze2019-10-2633-101/+460
|
* Fixed File.extname at a name ending with a dotNobuyoshi Nakada2019-10-171-2/+8
| | | | | File.extname now returns a dot string at a name ending with a dot. [Bug #15267]
* * remove trailing spaces. [ci skip]git2019-10-171-1/+1
|
* Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)Kenichi Kamiya2019-10-171-12/+28
| | | | | | | | | | | | | | | | | | | | | | | * {String|Symbol}#match{?} with nil returns falsy To improve consistency with Regexp#match{?} * String#match(nil) returns `nil` instead of TypeError * String#match?(nil) returns `false` instead of TypeError * Symbol#match(nil) returns `nil` instead of TypeError * Symbol#match?(nil) returns `false` instead of TypeError * Prefer exception * Follow empty ENV * Drop outdated specs * Write ruby/spec for above https://github.com/ruby/ruby/pull/1506/files#r183242981 * Fix merge miss
* Comparable#clamp with a range [Feature #14784]Nobuyoshi Nakada2019-10-161-4/+44
|
* Suppress warnings for Thread.exclusiveNobuyoshi Nakada2019-10-141-0/+7
|
* Update to ruby/spec@34e6246Benoit Daloze2019-09-2923-106/+104
|
* Update to ruby/spec@e69a14cBenoit Daloze2019-09-293-0/+40
|
* Update to ruby/spec@519df35Benoit Daloze2019-09-2929-177/+317
|
* [EXPERIMENTAL] Make NilClass#to_s, TrueClass#to_s and FalseClass#to_s return ↵Jean Boussier2019-09-273-0/+30
| | | | | | | | a frozen String * Always the same frozen String for each of these values. * Avoids extra allocations whenever calling these 3 methods. * See [Feature #16150]
* [EXPERIMENTAL] Make Module#name return a frozen StringJean Boussier2019-09-261-5/+19
| | | | | | * Always the same frozen String for a given Module or Class. * Avoids extra allocations whenever calling Module#name. * See [Feature #16150]
* [EXPERIMENTAL] Make Symbol#to_s return a frozen StringBenoit Daloze2019-09-261-0/+17
| | | | | | * Always the same frozen String for a given Symbol. * Avoids extra allocations whenever calling Symbol#to_s. * See [Feature #16150]
* Fix documentation for ENV.each to return ENVJeremy Evans2019-09-201-1/+1
| | | | | | | | Also have spec check that it returns ENV. Mostly from burdettelamar@yahoo.com (Burdette Lamar). Fixes [Bug #16164]
* Refine Timezone fixtureNobuyoshi Nakada2019-09-153-18/+39
|
* Make test-all and test-spec runnable on AndroidYusuke Endoh2019-09-093-3/+3
| | | | | | Calling some syscall functions such as Dir.chroot causes SIGSYS instead of EPERM on Android. This change skips all tests that stops the test-suite run.
* Improve Proc#to_s specsBenoit Daloze2019-09-081-7/+9
|
* armv7l and armv7l are the same platform, generalize to armv7Benoit Daloze2019-09-071-1/+1
| | | | [Bug #16007]
* Add `File.absolute_path?` (#2198)David Rodríguez2019-09-051-0/+53
| | | | | In order to check whether a path is absolute or not in a portable way. [Feature #15868]
* Remove bad expectation in specJeremy Evans2019-09-031-1/+0
| | | | | This spec should not be checking where methods are defined, only that the method works as expected (returns a Lazy instance).
* Prohibit nul-separated glob pattern [Feature #14643] (#2419)Nobuyoshi Nakada2019-09-021-1/+7
|
* spec/ruby/core/unboundmethod/bind_call_spec.rb: Add ruby_version_is guardYusuke Endoh2019-08-301-36/+38
|
* spec/ruby/core/unboundmethod/bind_call_spec.rb: AddedYusuke Endoh2019-08-301-0/+50
| | | | | For UnboundMethod#bind_call [Feature #15955] introduced in 002e592e0d67bb0271d16314a32380ad947c9ae9.
* Move fixture path to last pathHiroshi SHIBATA2019-08-171-1/+1
|
* change Proc#to_s format ('@...' -> ' ...') (#2362)Koichi Sasada2019-08-141-4/+4
| | | | | | | | Now Proc#to_s returns "#<Proc:0x00000237a0f5f170@t.rb:1>". However, it is convenient to select a file name by (double-)clicking on some terminals by separating ' ' instead of '@' like "#<Proc:0x00000237a0f5f170 t.rb:1>" [Feature #16101]