summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2017-05-25Raise ArgumentError if sprintf format string ends with %eregon
* Add tests and specs. See ruby/spec#401. Patch by Yuta Iwama and Shintaro Morikawa. [ruby-core:80153] [Bug #13315] [Fix GH-1560] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-24rubyspec/core/io/popen_spec: avoid lingering "ruby -e sleep" processnormal
The ruby_cmd helper blindly escapes code blocks passed to it, causing "sleep" to be quoted in the command-line. This quoting results in IO.popen using a subshell (/bin/sh) to run the given string command instead of invoking the Ruby executable directly. Thus, IO.popen would only see the PID of the subshell via IO#pid, and merely sending SIGKILL to the subshell would not result in the child ("ruby -e sleep") being killed. This problem with lingering ruby processes was easier to reproduce on slow or heavily-loaded systems using low-scheduling priority (e.g. "chrt -i 0 make test-rubyspec") git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-22source directory may not be writablenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-21String#casecmp no longer raises TypeErrorstomar
* See https://bugs.ruby-lang.org/issues/13312 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-21Use should_receive expectation instead of singleton methodstomar
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-19add specs for Unicode-wide case conversions introduced in Ruby 2.4duerst
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-19improve examples, fix one improbably should_not valueduerst
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-17modify r58771.ko1
* spec/rubyspec/command_line/dash_upper_s_spec.rb: enable tests on vboxsf (VirtualBox shared directory) and change tests to match /success$/ to ignore warnings. This technique is suggested by @unak. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-17spec/rubyspec: Add `ruby_version_is` guardk0kubun
for future backport to ruby/spec repository. See r58772 r58773 r58774. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-17spec/rubyspec: Fix rubyspec for tilde unescapek0kubun
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-17skip some tests on vboxsf.ko1
* spec/rubyspec/command_line/dash_upper_s_spec.rb: git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16ENV["HOME"] is prior as home on Windowsusa
* spec/rubyspec/core/dir/home_spec.rb: ENV["HOME"] is prior as home on Windows. reported by ko1. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16Should require at spec file, not fixture fileusa
Fixed ERRORs at non-Windows platforms. * spec/rubyspec/library/win32ole/fixtures/classes.rb (require): removed. * spec/rubyspec/library/win32ole/win32ole/ole_get_methods_spec.rb (require): forgotten to require 'win32ole'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16Should require WIN32OLEusa
* spec/rubyspec/library/win32ole/fixtures/classes.rb: should require WIN32OLE here because this file causes NameError in parallel spec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16Use raise_error blocknobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16Mac OS raises EADDRNOTAVAIL but not ECONNREFUSEDnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16Multiple exception classes at raise_errornobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16Avoid using a class variable in socket specseregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-16Use a reserved port to test for a non-existing TCP servereregon
* Avoids a race between finding an available port and another process starting a server on it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-15optional/capi: use LIBRUBYARG_SHAREDnobu
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): use LIBRUBYARG_SHARED for LDSHARED. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-15thread_spec.c: use rb_w32_pipenobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-15io_spec.c: suppress unused-variable warningnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-15optional/capi: fix link on mingwnobu
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): LIBRUBYARG is always necessary unless dynamic lookup is allowed. strip $(DEFFILE) from DLDFLAGS on mingw. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-15default.mspec: ignore unavailable FDsnobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-14fix typonobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-14Update to ruby/spec@032022caeregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-14Update to ruby/mspec@4b980493eregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-14Don't read non .rb file as a specnaruse
To avoid reading `core` file on reading core/ specs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-14suppress warningnobu
* spec/rubyspec/optional/capi/ext/fixnum_spec.c: suppress unused-but-set-variable warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-13The exception raised when exec/spawn unexecutable file on Windows is varioususa
It seems that depend on OS version or filesystem git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-13remove wrong expectationnobu
* spec/rubyspec/core/kernel/itself_spec.rb: `object_id` may return different objects for each calls, and the expectation of object identity is done by `equal` matcher which uses `equal?` method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12`notepad.exe` does not always exist in `C:\Windows`usa
Use `%WINDIR%\system32\drivers\etc\services` instead of `notepad.exe`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12Windows does not know Unix style timezoneusa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12On LLP64 platform (mswin64), the return value of String#hash is fixnum.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12Skip specs which make non-socket fd nonblocking on Windowsusa
because Windows does not support nonblocking mode except sockets. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12Support bulding the extension on Windowsusa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12unistd.h is only available when HAVE_UNISTD_H is 1usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12Skip the spec which uses `fork` on Windowsusa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12The title of "Desktop" may be localizedusa
* spec/rubyspec/library/win32ole/win32ole/_invoke_spec.rb: the title of "Desktop" may be localized. then, use "System32" because it seems not to be localized. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12Skip on Windows because it always failsusa
On Windows, when invoking ruby via runruby.rb, the pid of invoker and of invokee are diffrent. Therefore, this spec always fails. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12remove code old versionsnobu
* spec/rubyspec/optional/capi/spec_helper.rb (compile_extension): remove code old versions. `RbConfig::CONFIG["rubyhdrdir"]` is since 1.9, and `RbConfig::CONFIG["rubyarchhdrdir"]` is since 2.0.0. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-12Support building exts of spec on mswinusa
* spec/rubyspec/optional/capi/spec_helper.rb: building command of extensions on mswin differs from Unixen's one. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58671 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-10Use environment values to find ruby and flags instead of an argumenteregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-10Use ruby_cmd instead of the RUBY_EXE constant in specseregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-10Use the Mutex to know whether we entered the signal handler in Process#kill ↵eregon
specs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-10Process.getpgrp and Process.setsid must be available for Process#kill group ↵eregon
specs git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58650 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-10Use #system directly with multiple arguments in Process#kill specseregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-07Update specs to follow newlines added by r58596eregon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-07Rename spec/README to spec/README.mderegon
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-07* remove trailing spaces, append newline at EOF.svn
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e