aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/file
Commit message (Collapse)AuthorAgeFilesLines
* Make the test suite pass on real Android/Termux environmentYusuke Endoh2020-10-122-2/+2
| | | | Attempting to create a hard link raises EACCES
* Removed meaningless system dependent testsNobuyoshi Nakada2020-10-021-18/+0
| | | | | | As [Bug #16662] lchmod available in linux since glibc 2.31.9000, a system call may exist or not exist depending on the version. It is not a spec nor responsibility of Ruby.
* Update to ruby/spec@335eb9bBenoit Daloze2020-08-281-0/+6
|
* Update to ruby/spec@032ee74Benoit Daloze2020-05-038-26/+26
|
* Update to ruby/spec@d394dfdBenoit Daloze2020-05-022-2/+12
|
* Use `rb_warn_deprecated` for `File.exists?` and `Dir.exists?`Nobuyoshi Nakada2020-04-061-6/+0
|
* Update to ruby/spec@7289ea3Benoit Daloze2020-04-041-2/+14
|
* Use `platform_is` guardNobuyoshi Nakada2020-04-034-4/+4
|
* Refined "Drop support for ruby 2.4 from ruby/spec"Nobuyoshi Nakada2020-04-031-1/+1
| | | | By using spec/mspec/tool/remove_old_guards.rb.
* Update to ruby/spec@cc7b9e5Benoit Daloze2020-04-021-7/+3
|
* Drop support for ruby 2.4 from ruby/specNobuyoshi Nakada2020-04-016-56/+50
|
* Update to ruby/spec@ec84479Benoit Daloze2020-03-281-0/+8
|
* Update to ruby/spec@41bf282Benoit Daloze2020-02-282-0/+15
|
* spec/ruby: skip the specs that use /etc/passwd on AndroidYusuke Endoh2020-02-131-1/+1
| | | | There is no /etc/passwd on Android
* spec/ruby/core/file/utime_spec.rb: far future timestamp may be trancatedYusuke Endoh2020-02-091-3/+5
| | | | | | | | | | | | | | | | | | Under some Ext4 filesystem settings, a timestamp is limited up to 0x37fffffff (2446-05-10). https://ext4.wiki.kernel.org/index.php/Ext4_Disk_Layout#Inode_Timestamps > Therefore, timestamps should not overflow until May 2446. Actually the spec fails under one of our CI environments, like: ``` 1) File.utime allows Time instances in the far future to set mtime and atime FAILED Expected 2446 == 559444 to be truthy but was false ``` https://rubyci.org/logs/rubyci.s3.amazonaws.com/arch/ruby-master/log/20200208T180002Z.fail.html.gz
* Get rid of false positive misspellingsNobuyoshi Nakada2019-12-241-1/+1
| | | | [Bug #16437]
* Revert "Should return "." for File.extname("file.") also on Windows"NAKAMURA Usaku2019-12-231-2/+2
| | | | | | | | We want to introduce consistency and better compatibility with unixen, but the Windows APIs doues not have consistency fundamentally and we can not found any logical way... This reverts commit 61aff0cd189e67fa6f2565639ad0128fa33b88fc.
* Should return "." for File.extname("file.") also on WindowsNAKAMURA Usaku2019-12-221-2/+2
| | | | | But not changes another cases, such as "file.rb." [Bug #15267]
* Fixed misspellingsNobuyoshi Nakada2019-12-201-1/+1
| | | | Fixed misspellings reported at [Bug #16437], only in ruby and rubyspec.
* Update to ruby/spec@4eec3dcBenoit Daloze2019-11-303-2/+51
|
* Update to ruby/spec@28a728bBenoit Daloze2019-10-261-6/+14
|
* Fixed File.extname at a name ending with a dotNobuyoshi Nakada2019-10-171-2/+8
| | | | | File.extname now returns a dot string at a name ending with a dot. [Bug #15267]
* Update to ruby/spec@34e6246Benoit Daloze2019-09-298-48/+47
|
* Update to ruby/spec@519df35Benoit Daloze2019-09-291-1/+1
|
* Add `File.absolute_path?` (#2198)David Rodríguez2019-09-051-0/+53
| | | | | In order to check whether a path is absolute or not in a portable way. [Feature #15868]
* Update to ruby/spec@875a09eBenoit Daloze2019-07-2734-148/+148
|
* File::Stat uses Time#inspectNobuyoshi Nakada2019-07-111-2/+2
|
* Update to ruby/spec@8d74d49Benoit Daloze2019-06-2711-51/+10
|
* UNIX domain socket name length has a certain limitNobuyoshi Nakada2019-05-311-1/+6
|
* Update to ruby/spec@9a501a8Benoit Daloze2019-05-281-0/+2
|
* Update to ruby/spec@7de852dBenoit Daloze2019-04-285-68/+41
|
* Try to more accurately reflect MRI's logic in specs for finding the home if ↵Benoit Daloze2019-04-271-1/+10
| | | | $HOME is unset
* Update to ruby/spec@14e6148Benoit Daloze2019-04-271-7/+10
|
* Update to ruby/spec@15c9619Benoit Daloze2019-04-278-49/+37
|
* Update to ruby/spec@e81b3cderegon2019-03-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Skip EBADF spec in MJIT test for nowk0kubun2019-03-271-11/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* File#birthtime depends on the kernel version on Linuxnobu2019-02-221-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@7a16e01eregon2019-02-211-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revise the example on OpenBSDnobu2019-02-201-6/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix rubyspec test to pass tests. please revisit it @nobu?ko12019-02-201-5/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@6cf8ebeeregon2019-02-079-18/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@35a9fbaeregon2019-01-201-0/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@2d89e48eregon2018-12-301-31/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@944ea57eregon2018-12-295-17/+45
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Same as r66334 add Errno::EISDIRnaruse2018-12-112-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use Dir.home to avoid platform dependencynaruse2018-12-041-1/+1
| | | | | | On Solaris 10, `echo ~#{ENV['USER']}` As expected git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use /bin/echo instead of shell builtin echonaruse2018-12-031-1/+1
| | | | | | | builtin echo of Solaris 10's sh doesn't expand `~`. https://rubyci.org/logs/rubyci.s3.amazonaws.com/unstable10x/ruby-trunk/log/20181203T061807Z.fail.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@cdd6ff7eregon2018-11-271-7/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@4bb0f25eregon2018-06-135-18/+20
| | | | | | * Specs added by TruffleRuby. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Update to ruby/spec@6f38a82eregon2018-04-284-94/+76
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e