aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Stop Thread.new in `DRb::TimerIdConv::TimerHolder2#on_gc`Kazuhiro NISHIYAMA2019-12-103-1/+17
| | | | and add more stop_pool after stop_service
* test/ruby/test_keywords.rb: suppress a warningYusuke Endoh2019-12-101-1/+1
| | | | | | | https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20191210T003005Z.log.html.gz ``` .../test/ruby/test_keyword.rb:2711: warning: `*' interpreted as argument prefix ```
* test/net/http/test_https.rb (test_get_SNI_failure): stop proxy settingsYusuke Endoh2019-12-103-43/+45
| | | | | | | | | | | | | | Because the test fails under HTTP proxy settings. https://rubyci.org/logs/rubyci.s3.amazonaws.com/solaris10-gcc/ruby-master/log/20191210T000004Z.fail.html.gz ``` 1) Failure: TestNetHTTPS#test_get_SNI_failure [/export/home/users/chkbuild/cb-gcc/tmp/build/20191210T000004Z/ruby/test/net/http/test_https.rb:81]: [OpenSSL::SSL::SSLError] exception expected, not #<Net::HTTPServerException: 403 "Forbidden">. ``` The new SNI feature introduced at 54072e329c may need to be improved for HTTP proxy environment.
* Support completion with case-insensitive fashionaycabta2019-12-101-0/+51
| | | | | | Reline performs completion in a case-insensitive fashon if Readline.completion_case_fold or completion-ignore-case of .inputrc are set "on".
* Add Proc#ruby2_keywordsJeremy Evans2019-12-091-0/+39
| | | | | | | | | | | | This allows passing keywords through a normal argument splat in a Proc. While needing ruby2_keywords support for methods is more common, there is code that delegates keywords through normal argument splats in procs, including code in Rails. For that reason, it makes sense to expose this for procs as well. Internally, ruby2_keywords is not tied to methods, but iseqs, so this just allows for setting the ruby2_keywords for the iseq related to the proc.
* Add ipaddr optional parameter to Net::HTTP#startNARUSE, Yui2019-12-091-0/+31
| | | | | | | | | | | | | | | | to replace the address for TCP/IP connection [Feature #5180] There're 3 layers of hostname: * host address for TCP/IP * TLS server name * HTTP Host header value To test DNS round robin or check server certificate from server local, people sometimes want to connect server with given IP address but keep TLS server name and HTTP Host header value. closes [Feature #15215] closes https://github.com/ruby/ruby/pull/1893 closes https://github.com/ruby/ruby/pull/1977
* Added workaround for CoreAssertions used by ruby/logger.Hiroshi SHIBATA2019-12-091-2/+7
|
* Merge the upstream changes for test-unit on ruby/logger.Hiroshi SHIBATA2019-12-091-0/+3
| | | | | | | This commits are based with: https://github.com/ruby/logger/commit/f067f7d1aa743b467d633ec6d1790bd93ed9e25b https://github.com/ruby/logger/commit/86058f420d8f6909500cccceb24f58bef0597b4d https://github.com/ruby/logger/commit/02db6e8ed85d1f4ba974f08fee292bad400d9fc2
* Remove workaround encoding modificationaycabta2019-12-091-3/+1
|
* Stop pool threads in test/rinda tooKazuhiro NISHIYAMA2019-12-091-0/+3
|
* Skip completion tests for Editlineaycabta2019-12-081-0/+3
|
* Fix encoding of completed listaycabta2019-12-081-1/+28
|
* Add test_simple_completion for Readlineaycabta2019-12-081-0/+19
|
* test/ruby/test_file_exhaustive.rb: shorten the name of temporary dirYusuke Endoh2019-12-071-1/+1
| | | | | | | | | ``` 1) Error: TestFileExhaustive#test_socket_p: ArgumentError: too long unix socket path (109bytes given but 108bytes max) /export/home/users/chkbuild/cb-sunc/tmp/build/20191207T024036Z/ruby/test/ruby/test_file_exhaustive.rb:155:in `initialize' ```
* Test interfaces include localhostKazuhiro NISHIYAMA2019-12-061-0/+9
| | | | | When interfaces do not include localhost, some other tests may fail.
* Detect started threads when require onlyKazuhiro NISHIYAMA2019-12-061-0/+28
|
* test/lib/jit_support.rb: Update the regexp for iccYusuke Endoh2019-12-051-1/+1
| | | | MJIT_CC is always an absolute path.
* test/io/console/test_io_console.rb: add a memo for the mysterious hackYusuke Endoh2019-12-051-1/+11
|
* Change encoding of completion list...for more testsaycabta2019-12-051-0/+6
|
* test/io/console/test_io_console.rb: Try the hack for SolarisYusuke Endoh2019-12-051-1/+1
| | | | | | I'm not entirely sure why, but test_set_winsize_console gets stuck on Solaris (and if I recall, macOS). I found a hack for FreeBSD, so I want to give it a try on Solaris too.
* Prefer using MJIT_CC for JIT support checkTakashi Kokubun2019-12-041-1/+1
| | | | | because Solaris might have CC=cc and we'd like to check full path MJIT_CC=/opt/developerstudio12.5/bin/cc instead.
* add additional CF info for CI envKoichi Sasada2019-12-051-1/+1
| | | | | | | | | Introduce new RUBY_DEBUG option 'ci' to inform Ruby interpreter that an interpreter is running on CI environment. With this option, `rb_bug()` shows more information includes method entry information, local variables information for each control frame.
* Fix "cannot find the function: strcpy()" error on arm32 on Travis CI. (#2686)Jun Aruga2019-12-051-1/+13
| | | | | | | | | | | This issue happened when `libc.so` and `libm.so` path were not found and `ldd ruby` command also failed to print the shared dependencies in `test/fiddle/helper.rb`. See https://travis-ci.org/ruby/ruby/jobs/611483288#L3018 /home/travis/build/ruby/ruby/build/.ext/common/fiddle/import.rb:299:in `import_function': cannot find the function: strcpy() (Fiddle::DLError) * Set libc6:armhf as a installing dependency explicitly. * Remove arm32 from allow_failures.
* Change encoding of completion listaycabta2019-12-051-1/+6
|
* Make TracePoint.stat a singleton method again (#2726)Alan Wu2019-12-041-0/+4
| | | [Bug #16399]
* Revert "Add debug option to check ci failures on solaris"Kazuhiro NISHIYAMA2019-12-051-3/+0
| | | | This reverts commit f289e3994bbc6560e2e4e5905b52c35c829c972d.
* Support disable-completionaycabta2019-12-051-0/+39
|
* Fix variable catchaycabta2019-12-051-0/+8
|
* Fix thread leak in drbKazuhiro NISHIYAMA2019-12-041-0/+1
|
* implement Range#count卜部昌平2019-12-041-0/+4
| | | | As matz requested in [Bug #16366].
* new_cond before mon_initializeKoichi Sasada2019-12-041-0/+13
| | | | | | | MonitorMixin#new_cond can be called before mon_initialize, so we need to initialize `@monitor` before it. https://bugs.ruby-lang.org/issues/16255#note-4
* compile.c: stop wrong peephole optimization when covearge is enabledYusuke Endoh2019-12-041-0/+12
| | | | | | | | | | | | | | | | | | | jump-jump optimization ignores the event flags of the jump instruction being skipped, which leads to overlook of line events. This changeset stops the wrong optimization when coverage measurement is neabled and when the jump instruction has any event flag. Note that this issue is not only for coverage but also for TracePoint, and this change does not fix TracePoint. However, fixing it fundamentally is tough (which requires revamp of the compiler). This issue is critical in terms of coverage measurement, but minor for TracePoint (ko1 said), so we here choose a stopgap measurement. [Bug #15980] [Bug #16397] Note for backporters: this changeset can be viewed by `git diff -w`.
* Make {Method,UnboundMethod}#super_method handle clone/bind/unbindJeremy Evans2019-12-041-0/+30
| | | | | | | | This wasn't working previously because the iclass entry wasn't being copied, and without an iclass entry, super_method returns nil. Fixes [Bug #15629]
* Revert "Regexp#match{?} with nil raises TypeError as String, Symbol (#1506)"NARUSE, Yui2019-12-043-12/+2
| | | | | This reverts commit 2a22a6b2d8465934e75520a7fdcf522d50890caf. Revert [Feature #13083]
* Revert "Revert nil error and adding deprecation message"NARUSE, Yui2019-12-041-2/+2
| | | | This reverts commit 452bee3ee8d68059fabd9b1c7a75661b14e3933e.
* Make Enumerator::Chain#each treat lambdas as lambdaJeremy Evans2019-12-031-0/+16
| | | | | | | | Previously, lambdas were converted to procs because of how rb_block_call works. Switch to rb_funcall_with_block, which handles procs as procs and lambdas as lambdas. Fixes [Bug #15613]
* Do not lose existing constant visibility when autoloadingJeremy Evans2019-12-031-0/+60
| | | | | | | | | | This copies the private/deprecate constant visibility across the autoload. It still is backwards compatible with setting the private/deprecate constant visibility in the autoloaded file. However, if you explicitly set public constant in the autoloaded file, that will be reset after the autoload. Fixes [Bug #11055]
* Fixed stack overflow [Bug #16382]Nobuyoshi Nakada2019-12-031-0/+11
| | | | | Get rid of infinite recursion in expanding a load path to the real path while loading a transcoder.
* Support incremental search by last determined wordaycabta2019-12-031-0/+37
| | | | | | In the incremental search by C-r, search word is saved when it's determined. In the next incremental search by C-r, if a user presses C-r again with the empty search word, the determined previous search word is used to search.
* Fix Leaked file descriptor in test/did_you_meanKazuhiro NISHIYAMA2019-12-021-2/+2
| | | | | | | https://github.com/ruby/ruby/commit/de74d2c3b0005048a2c4433bde68b9be10c86f01/checks?check_suite_id=336910877#step:19:131 ``` Leaked file descriptor: NameErrorExtensionTest#test_correctable_error_objects_are_dumpable: 7 : #<File:test_name_error_extension.rb> ```
* Wait for the main thread to start reading by QueueNobuyoshi Nakada2019-12-021-0/+5
| | | | | Otherwise, the written data to pty before the reading started may be just lost.
* Support incremental search again by C-r in incremental searchaycabta2019-12-021-0/+22
|
* Check MJIT support in one placeTakashi Kokubun2019-12-012-3/+1
| | | | | to fix test failure on trunk-no-mjit https://gist.github.com/ko1/32ab982ffd7555988818773c08f97123
* Skip --jit-debug= test on mswinTakashi Kokubun2019-12-011-1/+2
| | | | | it fails like https://ci.appveyor.com/project/ruby/ruby/builds/29235837/job/v0apdjj4qx8afars
* Search history to back in the middle of historiesaycabta2019-12-021-0/+22
|
* Remove obsolete codeaycabta2019-12-021-1/+0
|
* The ed_search_prev_history should always search to backwardaycabta2019-12-011-0/+28
|
* Use build dir for testing --jit-debugTakashi Kokubun2019-12-011-1/+2
| | | | to fix failure like https://github.com/ruby/ruby/runs/327745536
* Allow specifying arbitrary MJIT flags by --jit-debugTakashi Kokubun2019-12-011-0/+6
| | | | | | | | This is a secret feature for me. It's only for testing and any behavior with this flag override is unsupported. I needed this because I sometimes want to add debug options but do not want to disable optimizations, for using Linux perf.
* Relax test strictness for error message from KeyErrorYuki Nishijima2019-11-301-1/+1
|