Граф коммитов

13139 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada da5bd0047d
Test for [Bug #16669] 2020-04-23 09:43:30 +09:00
Nobuyoshi Nakada de9d6a7a8c
Split test_defined 2020-04-23 09:39:42 +09:00
Nobuyoshi Nakada 1997e10f6c
Made parentheses mandatory in endless method defition
Even for empty argument list, not to be confusing with a writer
method name.
2020-04-22 20:44:46 +09:00
Nobuyoshi Nakada 1fe5bffefd
Disallow R-assign in endless def 2020-04-22 20:44:43 +09:00
Nobuyoshi Nakada 02ad393cd6
Revert "Allow simple R-assign in endless def"
This reverts commit 67bcac879a.
2020-04-22 18:56:06 +09:00
Yusuke Endoh 7d918be633 test/ruby/test_fiber.rb: Skip the problematic test_stack_size on riscv
Since it is impossible to detect stack overflow of C functions robustly,
the test is a bit unreasonable.

https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20200421T120018Z.fail.html.gz
2020-04-22 02:05:12 +09:00
Nobuyoshi Nakada 3ef09c6e66
eval_error.c: default nil as "reverse" is now false [Feature #8661] 2020-04-21 19:29:16 +09:00
Yusuke Endoh 8e51794265 test/ruby/test_refinement.rb: extend the timeout
https://rubyci.org/logs/rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20200420T083601Z.fail.html.gz
2020-04-21 00:06:53 +09:00
Yusuke Endoh 847e25975c Skip JIT tests on riscv64 due to SEGV of cc1 2020-04-20 22:48:10 +09:00
Yusuke Endoh 5a8960b4fe Skip TestRequire#test_loading_fifo_fd_leak on Android
The test fails due to unknown reason.  Need to debug in future, but
tentatively skipped.
2020-04-19 23:14:31 +09:00
Takashi Kokubun 2832ba80d6
The pdb header error is printed at stdout
https://ci.appveyor.com/project/ruby/ruby/builds/32278754/job/90jmky2jq2k0wjv8
2020-04-18 18:40:01 -07:00
Nobuyoshi Nakada 67e4d5e623
Environment variable values are not case-insensitive
Only the names are case-sensitive.
2020-04-18 23:19:57 +09:00
aycabta db0d850d4e [ruby/reline] Add ed_search_next_history
https://github.com/ruby/reline/commit/ca750b676b
2020-04-18 23:12:52 +09:00
aycabta bea3e31e5f [ruby/reline] Add ed_search_prev_history
https://github.com/ruby/reline/commit/e9ae288825
2020-04-18 23:12:52 +09:00
aycabta 1e4efbb6d3 [ruby/reline] Rename wrong test name
https://github.com/ruby/reline/commit/8480db575b
2020-04-18 23:11:45 +09:00
Nobuyoshi Nakada 08529a6115 Compare environment variable names in those manor [Bug #16798] 2020-04-18 23:09:01 +09:00
Takashi Kokubun 04e56958e6
Make sure newarraykwsplat accesses a correct index
on stack when local_stack_p is enabled.

This fixes `RB_FL_TEST_RAW:"RB_FL_ABLE(obj)"` assertion failure
on power_assert's test with JIT enabled.
2020-04-18 01:41:50 -07:00
Takashi Kokubun dc8ab86a2b
Super TestJIT#setup to skip unsupported envs
Slightly simplifying 8d6aa06620
2020-04-18 00:48:33 -07:00
Takashi Kokubun 9948addda6
Skip a too-unstable test on s390x-linux
In the last 26-ish hours, it has failed 5 times:
https://travis-ci.org/github/ruby/ruby/jobs/676497718
https://travis-ci.org/github/ruby/ruby/jobs/676480295
https://travis-ci.org/github/ruby/ruby/jobs/676103216
https://travis-ci.org/github/ruby/ruby/jobs/676057967
https://travis-ci.org/github/ruby/ruby/jobs/676055113

and I don't think anybody has been working on it right now. To make CI
result report of s390x-linux useful, let's skip it until the test is
improved to be more stable.
2020-04-18 00:31:34 -07:00
Yusuke Endoh 8d6aa06620 test/ruby/test_jit_debug.rb: Skip unsupported platforms 2020-04-18 14:59:22 +09:00
Takashi Kokubun f8b79ef567
Compilation error does not impact exit status
We failed to ignore
https://ci.appveyor.com/project/ruby/ruby/builds/32245902/job/xcfxw67uexxysvni
2020-04-17 10:11:47 -07:00
Yusuke Endoh 36353b2728 test/ruby/test_process.rb: Skip GID.from_name on Android
The user management on Android seems very different

https://rubyci.org/logs/rubyci.s3.amazonaws.com/android28-x86_64/ruby-master/log/20200416T234122Z.fail.html.gz
2020-04-17 09:22:43 +09:00
Nobuyoshi Nakada fedc8075fe
Preserve encoding in error messages for invalid user/group name 2020-04-16 20:50:08 +09:00
Nobuyoshi Nakada 748c7c7c0b
Added tests for Process::UID.from_name and Process::GID.from_name 2020-04-16 20:50:08 +09:00
Nobuyoshi Nakada f57e2d7296
Preserve encoding in error message for invalid env exec option 2020-04-16 20:50:07 +09:00
Nobuyoshi Nakada 33aaa2aa15
Added test for invalid env exec option 2020-04-16 20:38:11 +09:00
Nobuyoshi Nakada a9567cc2bf Added test for `debug_level:` option of `RubyVM::InstructionSequence.compile` 2020-04-15 16:06:48 +09:00
Takashi Kokubun 1dad9fa5e1
This test is not testing attr_writer 2020-04-14 23:59:29 -07:00
Takashi Kokubun 79f3403be0
Invalidate fastpath when calling attr_reader by super
The same bug as 8355a99883 existed in attr_reader too.
2020-04-14 23:49:29 -07:00
Takashi Kokubun 8355a99883
Invalidate fastpath when calling attr_writer by super
We started to use fastpath on invokesuper when a method is not refinements
since 5c27681813, but we shouldn't have used fastpath for attr_writer either.

`cc->aux_.attr_index` is for an actual receiver class, while we store
its superclass in `cc->klass` and therefore there's no way to properly
invalidate attr_writer's inline cache when it's called by super.

[Bug #16785]

I suspect the same bug also exists in attr_reader. I'll address that in
another commit.
2020-04-14 23:32:13 -07:00
Nobuyoshi Nakada 478135f480
Disallow line-continuation before R-assign 2020-04-15 10:33:11 +09:00
Takashi Kokubun f888626552
Fix logic to detect vs120
MJIT_CC seems not defined
https://ci.appveyor.com/project/ruby/ruby/builds/32161572/job/u5sw8yn4in87heki
2020-04-13 23:48:40 -07:00
Takashi Kokubun e667750364
Add missing call in 70b7304f03 2020-04-13 23:11:51 -07:00
Takashi Kokubun 70b7304f03
Ignore AppVeyor vs120's pdb corruption
We tried to fix this like https://github.com/ruby/ruby/pull/3029, but it
didn't work. The failure has never been helpful for developing MJIT, and
currently it's not prioritized to be fixed. Until we try to figure out
the root cause on AppVeyor vs120, let's optionally disable testing when
the random corruption happens.
2020-04-13 23:08:25 -07:00
Nobuyoshi Nakada 67bcac879a Allow simple R-assign in endless def 2020-04-13 21:51:34 +09:00
Nobuyoshi Nakada 022c7bbea9
Relaxed of R-assign value to arg 2020-04-12 00:07:57 +09:00
Nobuyoshi Nakada e56e089b1f
Assertions for basic use of `encoding:` option 2020-04-11 12:59:45 +09:00
Nobuyoshi Nakada bae16b4277
Assertions for enumerators of Dir 2020-04-11 12:59:26 +09:00
Nobuyoshi Nakada aade69eaf8
Removed unnecessary `to_a` call
`Dir.entries` returns an array.
2020-04-11 11:58:49 +09:00
Nobuyoshi Nakada 6f28ebd585
Silence broken pipe error messages on STDOUT [Feature #14413]
Raise `SignalException` for SIGPIPE to abort when EPIPE occurs.
2020-04-11 09:30:19 +09:00
Nobuyoshi Nakada e8f53692ca
Endless method definition [Feature #16746] 2020-04-10 18:02:15 +09:00
Nobuyoshi Nakada 1b2d351b21
Rightward-assign by ASSOC
[Feature #15921]
2020-04-10 15:03:58 +09:00
Hiroshi SHIBATA 3e8e4c0505 [ruby/net-ftp] Added guard condition for the old ruby versions
https://github.com/ruby/net-ftp/commit/a56ba121ee
2020-04-08 15:51:18 +09:00
Hiroshi SHIBATA 0c131fb7ff [ruby/net-ftp] Guard with under the Ruby 2.6
https://github.com/ruby/net-ftp/commit/bed4bc31db
2020-04-08 15:50:48 +09:00
Nobuyoshi Nakada 2f1895fa15
Fixed formatted substring expansion [Bug #16767] 2020-04-08 01:13:03 +09:00
Nobuyoshi Nakada 927308108c
Fix source location of autoloaded constant [Bug #16764] 2020-04-07 21:35:28 +09:00
Nobuyoshi Nakada 5a81562dfe
`Dir.glob` always returns an array
It is not needed to test itself, but the element should be tested
instead.
2020-04-01 12:48:56 +09:00
Paul Jordan 3e386d76c2 Fix helper to not assume glibc 2020-04-01 15:49:02 +13:00
Takashi Kokubun b736ea63bd
Optimize exivar access on JIT-ed getivar
JIT support of dd723771c1.

$ benchmark-driver -v --rbenv 'before;before --jit;after --jit' benchmark/mjit_exivar.yml --repeat-count=4
before: ruby 2.8.0dev (2020-03-30T12:32:26Z master e5db3da9d3) [x86_64-linux]
before --jit: ruby 2.8.0dev (2020-03-30T12:32:26Z master e5db3da9d3) +JIT [x86_64-linux]
after --jit: ruby 2.8.0dev (2020-03-31T05:57:24Z mjit-exivar 128625baec) +JIT [x86_64-linux]
Calculating -------------------------------------
                         before  before --jit  after --jit
         mjit_exivar    57.944M       53.579M      54.471M i/s -    200.000M times in 3.451588s 3.732772s 3.671687s

Comparison:
                      mjit_exivar
              before:  57944345.1 i/s
         after --jit:  54470876.7 i/s - 1.06x  slower
        before --jit:  53579483.4 i/s - 1.08x  slower
2020-03-30 23:16:35 -07:00
David Rodríguez 9d5e7d6c67 [rubygems/rubygems] Revert "Remove Gem::DependencyInstaller#find_gems_with_sources"
This reverts commit 04c79d3eb9d9803d9fae78575b125b325b97206e.

Final removal is postponed until next year until we find a better way to
manage deprecations.

https://github.com/rubygems/rubygems/commit/3e1cf918a5
2020-03-30 12:54:58 +09:00