Hiroshi SHIBATA
167121a9e7
[ruby/find] Use omit instead of skip for test-unit
...
https://github.com/ruby/find/commit/0ebbd5b852
2022-01-11 21:40:51 +09:00
kazu
cf6f729213
Fix indent and use as skipped message instead of comment
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-11 13:56:04 +00:00
mame
b496220a1f
skip some tests so that no failure occurs in root privilege
...
Some tests had failed on `sudo make test-all`, mainly because root can
access any files regardless of permission. This change adds `skip`
guards into such tests.
Note that almost all tests in which `skip` guards is added, already have
"windows" guard. This is because there is no support to avoid read
access by owner on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61758 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-10 10:39:09 +00:00
ktsj
917bc68772
test_find.rb: improve branch coverage
...
* test/test_find.rb (test_to_path): add a test
for to_path conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-30 03:31:32 +00:00
kazu
ad97d4839c
lib/find.rb: Specify frozen_string_literal: true.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-02-13 12:16:26 +00:00
nobu
3ad8210ce1
find.rb: raise with the name
...
* lib/find.rb (Find#find): raise with the given path name if it
does not exist. [ruby-dev:49497] [Bug #12087 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-02-19 14:38:28 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
nobu
5dfc455b72
test: File.symlink needs administrator privilege
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-28 01:24:36 +00:00
ktsj
c754b22797
* lib/find.rb (Find#find): should pass ignore_error option to enumerators.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-03 15:28:58 +00:00
usa
d0a9ee1e86
* test/test_find.rb (TestFind#test_unsearchable_dir): ruby cannot make
...
directory unreachable by owner on Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-03 04:28:55 +00:00
nobu
aad895181e
find.rb: add ignore_error
...
* lib/find.rb (Find#find): add "ignore_error" keyword argument
defaulted to true. [ruby-core:51025] [Feature #7596 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-03-02 02:15:21 +00:00
hsbt
6f667c6460
* test/test_find.rb: remove unused variables.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-17 02:39:58 +00:00
ktsj
0a4801e768
* lib/find.rb (Find.find): respect the encodings of arguments.
...
[ruby-dev:47530] [Feature #8657 ]
* test/test_find.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-09-07 04:34:27 +00:00
usa
2081114600
* test/test_find.rb: skip some tests on Windows.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-25 07:03:31 +00:00
akr
6aafca91db
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-15 17:21:09 +00:00
usa
d698bd8ad0
* test_find.rb: close temporary files before removing them.
...
* test_find.rb: skip symlink tests if not implemented.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-15 00:16:48 +00:00
akr
92e9bf7a59
* lib/find.rb (Find.find): narrow rescue region.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 12:50:13 +00:00
akr
4df4a74308
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-14 11:56:03 +00:00
akr
b3ea5a1789
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-13 22:48:13 +00:00
akr
8dc14638ea
new test file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-12-13 16:00:33 +00:00