shyouhei
201267b1c5
* test/ruby/test_file_exhaustive.rb (TestFileExhaustive::test_expand_path):
...
ENV["HOME"] might not be set. On those cases without it an
exception raises here, which effectively disables later
tests on this method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-16 06:03:13 +00:00
nobu
0fd37b09ee
* file.c (rb_file_s_readlink): symlink target should be in
...
filesystem encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-04 14:48:55 +00:00
usa
49e259ec58
* file.c (file_expand_path): wrong condition. [ruby-core:31591]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-02 03:25:12 +00:00
nobu
6d56e80ad1
* file.c (file_expand_path): home directory must be absolute.
...
[ruby-core:31537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 23:51:53 +00:00
nobu
a99de84663
* file.c (file_expand_path): should check if could find user.
...
[ruby-core:31538]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-29 23:33:21 +00:00
nobu
45815f9c9d
* file.c (rb_f_test): 'W' should test writable by real uid/git,
...
not world writable. [ruby-core:30587]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 23:30:48 +00:00
usa
fd328d8ea1
* test/ruby/test_require.rb (test_relative_symlink): skip if symlink is not
...
implemented.
* test/ruby/test_file_exhaustive.rb (test_stat, test_expand_path): ignore tests
about nlink on Windows because its not imeplented because of performance
problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-04 16:02:17 +00:00
nobu
e1cc514073
* test/ruby: fixed nonsense assertions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-29 05:33:43 +00:00
nobu
cb508fe739
* file.c (rb_file_s_extname): skip last directory separators.
...
[ruby-core:29627]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-19 15:43:05 +00:00
nobu
0884036a0a
* file.c (rb_file_s_basename): check encoding of suffix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-12 15:44:24 +00:00
akr
37679ee584
supress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-25 23:12:50 +00:00
nobu
a1485dbea0
* dir.c (GlobPathValue), file.c (rb_get_path_check): path names
...
must be ASCII compatible.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-19 08:33:01 +00:00
nobu
ca93e00559
* file.c (rb_file_s_basename): returns new string instead of
...
shared string from FilePathStringValue(). [ruby-core:24199]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-07-08 07:47:09 +00:00
mame
6ff04457c0
* test/ruby/test_file_exhaustive.rb: add tests for File#size and
...
File.absolute_path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-08 16:12:09 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
mame
234bc1d7a9
* test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.
...
a patch from Lucas Nussbaum in [ruby-core:22209].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-18 18:17:26 +00:00
nobu
829ab73879
* file.c (rb_file_s_extname): fix for spaces before extention.
...
[ruby-dev:38044]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-18 03:38:42 +00:00
nobu
729b4a813b
* win32/win32.c (open_dir_handle): extracted from rb_w32_opendir.
...
* win32/win32.c (winnt_stat): gets rid of strange behavior of
GetFileAttributes(). [ruby-core:21269]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-01-12 07:45:31 +00:00
kazu
efdcaba210
* test/ruby/test_file_exhaustive.rb (TestFileExhaustive#setup): set group of tmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-13 17:46:47 +00:00
usa
1de486b600
* test/ruby/test_file_exhaustive.rb (setup): workaround for Windows
...
Vista.
* test/ruby/envutil.rb (rubyexec): now Open3.open3 is supported on
Windows.
* test/ruby/test_process.rb: use ``||'' instead of ``;'' because
cmd.exe not support it.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-20 16:48:32 +00:00
nobu
34c96140f3
* file.c (rb_file_s_extname): first dot is not an extension name.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-17 02:29:13 +00:00
nobu
22361a3d1c
* file.c (file_expand_path): support for alternative data stream
...
and ignored trailing garbages of NTFS.
* file.c (rb_file_s_basename): ditto.
* file.c (rb_file_s_extname): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-15 06:34:02 +00:00
nobu
e4f8e61ddd
* test/ruby/test_file_exhaustive.rb (assert_integer): may not Fixnum.
...
* test/ruby/test_file_exhaustive.rb (test_stat, test_readable_p)
(test_readable_real_p, test_world_readable_p, test_writable_p)
(test_writable_real_p, test_world_writable_p, test_executable_p)
(test_executable_real_p, test_owned_p, test_chmod, test_lchmod)
(test_umask, test_stat_readable_p, test_stat_readable_real_p)
(test_stat_world_readable_p, test_stat_writable_p)
(test_stat_writable_real_p, test_stat_world_writable_p)
(test_stat_executable_p, test_stat_executable_real_p)
(test_stat_owned_p): mode, owner and group can't rely on cygwin.
* test/ruby/test_file_exhaustive.rb (test_stat_init): test hard link
on Windows too.
* test/ruby/test_file_exhaustive.rb (test_test): struct stat dosn't
have sub second mtime on cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-14 09:11:10 +00:00
mame
1951ceeed7
* test/ruby/test_io_m17n.rb: remove a duplicative method.
...
* test/ruby/test_utf16.rb: rename a conflicting method name.
* test/ruby/test_array.rb: ditto.
* test/ruby/test_file_exhaustive.rb: ditto.
* test/ruby/test_hash.rb: ditto.
* test/ruby/test_env.rb: ditto.
* test/ruby/test_fixnum.rb: ditto.
* test/ruby/test_rational.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-13 15:57:22 +00:00
akr
4500a5207d
File#lchmod test removed because the method is not exist.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-06 00:02:01 +00:00
mame
65753a5838
* test/ruby/test_pack.rb: fix tests for 64bit CPU.
...
* test/ruby/test_bignum.rb: ditto.
* test/ruby/test_file_exhaustive.rb: ditto.
* test/ruby/test_integer.rb: ditto.
* test/ruby/test_time.rb: ditto.
* test/ruby/test_numeric.rb: ditto.
* test/ruby/test_fixnum.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 21:52:25 +00:00
mame
8f655cec3d
* test/ruby/test_file_exhaustive.rb: add tests to achive over 80% test coverage of file.c.
...
* test/ruby/test_numeric.rb: forgot to add this (at r15360).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-03 12:14:30 +00:00