aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* merge revision(s) 996af2ce086249e904b2ce95ab2fcd1de7d757be: [Backport ↵nagachika2020-09-299-23/+68
| | | | | | | | #16345] [Backport #17000] Disable deprecation warning by the default [Feature #16345] And `-w` option turns it on.
* Skip bundler spec using irb with simulated JRuby environment.nagachika2020-09-171-0/+1
|
* spec/ruby/core/file/utime_spec.rb: far future timestamp may be trancatedYusuke Endoh2020-09-091-3/+5
| | | | | | | | | | | | | | | | | | Under some Ext4 filesystem settings, a timestamp is limited up to 0x37fffffff (2446-05-10). https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inode_Timestamps > Therefore, timestamps should not overflow until May 2446. Actually the spec fails under one of our CI environments, like: ``` 1) File.utime allows Time instances in the far future to set mtime and atime FAILED Expected 2446 == 559444 to be truthy but was false ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-master/log/20200208T180002Z.fail.html.gz
* Revert "Don't display singleton class in Method#inspect unless method ↵nagachika2020-09-051-18/+0
| | | | | | | | defined there" [Backport #16771] This reverts commit 0d24fb774d84d4a99454ce10fd343da00049a588.
* merge revision(s) da05c1552ee519d8f180b48d97148d28501acb35: [Backport #16749]nagachika2020-07-232-7/+4
| | | | Update to ruby/spec@cc7b9e5
* merge revision(s) 99a9c3fe2eaab8157765d792dc871da6daea0327: [Backport #17024]nagachika2020-07-231-1/+5
| | | | Fixed yday and wday with timezone [Bug #17024]
* merge revision(s) ↵nagachika2020-07-231-0/+69
| | | | | | | | | | 5a79d8e0507cd143100bf928a88a59a8b5a5bca6,160511d851375f7cb922faae3a9310633187f51f: [Backport #16925] Fix error raised by Net::HTTPResponse#inflater if the block raises * See https://bugs.ruby-lang.org/issues/13882#note-6 Quarantine specs which fail frequently with CHECK_LEAKS=true
* Update some syslog tests to absurb the format change of FreeBSD syslogYusuke Endoh2020-07-182-7/+6
| | | | | | | | | | | | | | | | | | FreeBSD ``` $ ruby -rsyslog -e 'Syslog.open("rubyspec", Syslog::LOG_PERROR) {|s| s.log(Syslog::LOG_ALERT, "Hello") }' rubyspec 78462 - - Hello ``` Linux ``` $ ruby -rsyslog -e 'Syslog.open("rubyspec", Syslog::LOG_PERROR) {|s| s.log(Syslog::LOG_ALERT, "Hello") }' rubyspec: Hello ``` https://github.com/freebsd/freebsd/commit/591ef7c8076109cff3c41f9bb50da996a34121e9
* Merge bundler-2.1.4Hiroshi SHIBATA2020-03-2714-105/+185
|
* [ruby/stringio] StringIO#initialize default to the source string encodingJean Boussier2020-03-151-0/+3
| | | | | | | [Bug #16497] https://github.com/ruby/stringio/commit/4958a5ccab (cherry picked from commit e257c08f2ec27e2d66cdfa7e2415deb492522e22)
* Don't display singleton class in Method#inspect unless method defined thereJeremy Evans2020-03-141-0/+18
| | | | | | | | | | | | | | Previously, if an object has a singleton class, and you call Object#method on the object, the resulting string would include the object's singleton class, even though the method was not defined in the singleton class. Change this so the we only show the singleton class if the method is defined in the singleton class. Fixes [Bug #15608] (cherry picked from commit e02bd0e713ef920e6d12c27f16548f48ec5c2cf0)
* MinGW on Actions (#2791)MSP-Greg2020-01-301-13/+15
| | | | | | | | | | | | | | | | | | | * MinGW - skip spec in spec/ruby/optional/capi/thread_spec.rb C-API Thread function rb_thread_call_without_gvl -- runs a C function with the global lock unlocked and unlocks IO with the generic RUBY_UBF_IO stops/freezes spec tests See https://bugs.ruby-lang.org/issues/16265 * MinGW - skip test test/resolv/test_dns.rb Test times out in CI (both AppVeyor & Actions), cannot repo locally * MinGW - skip test test/ruby/test_thread_queue.rb * Add Actions mingw.yml
* Fix Proc#<< specAlan Wu2020-01-161-0/+46
| | | | [Bug #16406]
* Merge Bundler 2.1.2 from bundler/bundler.Hiroshi SHIBATA2019-12-251-0/+6
| | | | [Misc #16449][ruby-core:96458]
* Get rid of false positive misspellingsNobuyoshi Nakada2019-12-241-1/+1
| | | | [Bug #16437]
* Revert "Should return "." for File.extname("file.") also on Windows"NAKAMURA Usaku2019-12-231-2/+2
| | | | | | | | We want to introduce consistency and better compatibility with unixen, but the Windows APIs doues not have consistency fundamentally and we can not found any logical way... This reverts commit 61aff0cd189e67fa6f2565639ad0128fa33b88fc.
* Move version guard outside to make it clear the method was added in Ruby 2.5Benoit Daloze2019-12-221-2/+2
|
* Should return "." for File.extname("file.") also on WindowsNAKAMURA Usaku2019-12-221-2/+2
| | | | | But not changes another cases, such as "file.rb." [Bug #15267]
* Add spec for capturing Kernel#lambda with Kernel#methodAlan Wu2019-12-211-0/+7
|
* Add specs for calling into Kernel#lambda with superAlan Wu2019-12-212-1/+38
|
* Makes the receiver to FrozenError.new a keyword parameterNobuyoshi Nakada2019-12-201-1/+1
| | | | [Feature #16419]
* Fixed misspellingsNobuyoshi Nakada2019-12-208-10/+10
| | | | Fixed misspellings reported at [Bug #16437], for default gems.
* Fixed misspellingsNobuyoshi Nakada2019-12-2012-17/+17
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* Merge bundler-2.1.1 from bundler/bundlerHiroshi SHIBATA2019-12-181-0/+6
|
* close datasocket on stor of server sideNARUSE, Yui2019-12-171-1/+1
|
* Delegate should be supported nowDavid Rodríguez2019-12-151-1/+1
| | | | Since `did_you_mean` dropped its dependency on it.
* Fixed test failures with gem command path on ruby core repo.Hiroshi SHIBATA2019-12-154-4/+8
|
* Prepare to release bundler-2.1.0Hiroshi SHIBATA2019-12-1547-248/+269
|
* 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
|
* Update to ruby/mspec@aa28e95Benoit Daloze2019-12-012-6/+5
|
* [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
* Fixed type of an index variableNobuyoshi Nakada2019-12-011-1/+1
|
* 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-30174-421/+1775
|
* Update to ruby/mspec@a401f63Benoit Daloze2019-11-3056-278/+305
|
* 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...
* Fix glob base in bundler.gemspecKazuhiro NISHIYAMA2019-11-191-1/+2
|
* Skip some tests if extracted from tarballKazuhiro NISHIYAMA2019-11-191-0/+9
|