summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2019-06-30Suppress unused variable warningsNobuyoshi Nakada
2019-06-30Wait for the helper thread to terminateNobuyoshi Nakada
2019-06-30Add parentheses to suppress warningsNobuyoshi Nakada
2019-06-30Removed unused variablesNobuyoshi Nakada
2019-06-29Escape control codes in regexp warning messageNobuyoshi Nakada
2019-06-29Should not warn massign parameters as unusedNobuyoshi Nakada
2019-06-29Rmove old TestTimeTZ::TZ#abbr attributeNobuyoshi Nakada
2019-06-29Add max option to TestProtocol#create_mockioNobuyoshi Nakada
* test/net/protocol/test_protocol.rb (TestProtocol#create_mockio): max option to limit maximum writable size at once, and unify mock method in test_write0_multibyte.
2019-06-29Fixed String#grapheme_clusters with wide encodingsNobuyoshi Nakada
* string.c (get_reg_grapheme_cluster): make regexp from properly encoded sources fro wide-char encodings. [Bug #15965] * regparse.c (node_extended_grapheme_cluster): suppress false duplicated range warning for the time being.
2019-06-29Hoisted out WIDE_ENCODINGSNobuyoshi Nakada
2019-06-29Set file name and line numberNobuyoshi Nakada
2019-06-29Adjust caller's line number, expect the next line as here-docNobuyoshi Nakada
2019-06-28Removed unused variablesNobuyoshi Nakada
2019-06-28Add parentheses to suppress a warningNobuyoshi Nakada
2019-06-28Test string contentNobuyoshi Nakada
2019-06-28Removed unused variablesNobuyoshi Nakada
2019-06-28Fixed a variable nameNobuyoshi Nakada
2019-06-28Removed excess spacesNobuyoshi Nakada
2019-06-28Fixed name conflict between helper classesNobuyoshi Nakada
2019-06-28Skip instead of returnNobuyoshi Nakada
2019-06-28Suppress unused variable warningsNobuyoshi Nakada
2019-06-28Use assert_separately instead of invoke_rubyNobuyoshi Nakada
2019-06-28Define singleton method on each new objectsNobuyoshi Nakada
2019-06-28Suppress redefinition and void context warningsNobuyoshi Nakada
2019-06-28Use assigned local variableNobuyoshi Nakada
2019-06-28Wait for the helper thread to terminateNobuyoshi Nakada
2019-06-28Fixed the test-case class name for zshNobuyoshi Nakada
2019-06-28Use block instead of explicit closeKazuhiro NISHIYAMA
2019-06-28Add `require 'test/unit'`Kazuhiro NISHIYAMA
2019-06-28Suppress void context warning in verbose modeNobuyoshi Nakada
2019-06-28Close leaked file descriptorNobuyoshi Nakada
2019-06-28Suppress unused variable warning with RUBYOPT=-wNobuyoshi Nakada
2019-06-28O_EXCL has no meaning for fdopenNobuyoshi Nakada
"exclusive access mode is not supported" exception has resulted in empty "rubyheap-*.json" files after test/objspace/test_objspace.rb.
2019-06-27Fix ripper fatalNobuyoshi Nakada
* parse.y (parser_yylex): return END_OF_INPUT at unterminated here document instead of an error. [Bug #15962]
2019-06-27Test for unterminated here-docsNobuyoshi Nakada
2019-06-26test/ruby/test_array.rb (test_sort_with_replace): run in a subprocessYusuke Endoh
This test invokes GC.start 100 times, which takes approx. six minutes in Solaris. This change runs the test in a separated process, which makes GC.start faster.
2019-06-26Resize capacity for fstringJohn Hawthorn
When a string is #frozen, it's capacity is resized to fit (if it is much larger), since we know it will no longer be mutated. > puts ObjectSpace.dump(String.new("a"*30, capacity: 1000)) {"type":"STRING", "class":"0x7feaf00b7bf0", "bytesize":30, "capacity":1000, "value":"... > puts ObjectSpace.dump(String.new("a"*30, capacity: 1000).freeze) {"type":"STRING", "class":"0x7feaf00b7bf0", "frozen":true, "bytesize":30, "value":"... (ObjectSpace.dump doesn't show capacity if capacity is equal to bytesize) Previously, if we dedup into an fstring, using String#-@, capacity would not be reduced. > puts ObjectSpace.dump(-String.new("a"*30, capacity: 1000)) {"type":"STRING", "class":"0x7feaf00b7bf0", "frozen":true, "fstring":true, "bytesize":30, "capacity":1000, "value":"... This commit makes rb_fstring call rb_str_resize, the same as rb_str_freeze does. Closes: https://github.com/ruby/ruby/pull/2256
2019-06-25test/net/imap/test_imap.rb: use Thread#stop? to wait for server threadYusuke Endoh
Still timeout occurs. Retry for 5dd8fdd3f328f741fae4abba00c478e8a51d2a7e. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable11x/ruby-master/log/20190625T032405Z.fail.html.gz
2019-06-25Do not allocate a string to check if a scalar is an integerJean Boussier
2019-06-25Add test to demonstrate issue deserializing hash with ivarJordan Owens
Currently the elements of a hash are revived before any ivar values. This causes an issue when the `[]=` method references an instance variable.
2019-06-25Round trip exception backtracesAaron Patterson
This commit allows exception backtraces to round trip
2019-06-25Fix IO#scanf on pipes on WindowsJeremy Evans
IO.seek on a pipe on Windows raises Errno::EINVAL instead of Errno::ESPIPE. Fixes Ruby Bug #15199
2019-06-24Add new encoding CESU-8 [Feature #15931]NARUSE, Yui
2019-06-24httpstatus.rb 100% coveragemasakazutakewaka
2019-06-24Remove extraneous spaces at the end of status lineNobuyoshi Nakada
Remove extraneous spaces after the status code that is non-compliant with RFC, i.e `HTTP 200 OK `, to unnecessary confusion for WEBrick users, by a risk that WEBrick instances in the wild will have server responses flagged as suspicious or malicious due to a similar bug in [Cobalt Strike misconfiguration]. Reported by Matt Tennis <mtennis@paloaltonetworks.com> [Cobalt Strike misconfiguration]: https://blog.fox-it.com/2019/02/26/identifying-cobalt-strike-team-servers-in-the-wild/
2019-06-23array.c: always check frozenness in Array#unshift. Fixes [Bug #15952]Luke Gruber
Closes: https://github.com/ruby/ruby/pull/2251
2019-06-23Get rid of error with frozen string literalNobuyoshi Nakada
[Bug #14194]
2019-06-23Disable frozen-string-literal to disable deduplicationNobuyoshi Nakada
[Bug #14194]
2019-06-23Get rid of error with frozen string literalMSP-Greg (Greg L)
[Bug #14194]
2019-06-23Module#constant_source_location [Feature #10771]Nobuyoshi Nakada