diff options
| author | nagachika <nagachika@ruby-lang.org> | 2025-05-18 10:24:11 +0900 |
|---|---|---|
| committer | nagachika <nagachika@ruby-lang.org> | 2025-05-18 10:24:11 +0900 |
| commit | 8a1d738b80408db5713c6b83adb0e5ce354360e5 (patch) | |
| tree | 71fce9d0434caa948952177a3be0db76411ad89d /spec/ruby/core | |
| parent | cb49400d680894d69534b0b4cd10b085de325e2a (diff) | |
merge revision(s) 3113bc8d445c4c24ed3827adfc50bb88c99b6364:
stat command is not provided on Windows
Diffstat (limited to 'spec/ruby/core')
| -rw-r--r-- | spec/ruby/core/file/atime_spec.rb | 3 | ||||
| -rw-r--r-- | spec/ruby/core/file/ctime_spec.rb | 3 | ||||
| -rw-r--r-- | spec/ruby/core/file/mtime_spec.rb | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/spec/ruby/core/file/atime_spec.rb b/spec/ruby/core/file/atime_spec.rb index 1b47576e6b..e47e70e5ac 100644 --- a/spec/ruby/core/file/atime_spec.rb +++ b/spec/ruby/core/file/atime_spec.rb @@ -27,6 +27,9 @@ describe "File.atime" do else File.atime(__FILE__).usec.should == 0 end + rescue Errno::ENOENT => e + # Native Windows don't have stat command. + skip e.message end end end diff --git a/spec/ruby/core/file/ctime_spec.rb b/spec/ruby/core/file/ctime_spec.rb index d17ba1a77f..718f26d5cc 100644 --- a/spec/ruby/core/file/ctime_spec.rb +++ b/spec/ruby/core/file/ctime_spec.rb @@ -22,6 +22,9 @@ describe "File.ctime" do else File.ctime(__FILE__).usec.should == 0 end + rescue Errno::ENOENT => e + # Windows don't have stat command. + skip e.message end end diff --git a/spec/ruby/core/file/mtime_spec.rb b/spec/ruby/core/file/mtime_spec.rb index 5304bbf057..0e9c95caee 100644 --- a/spec/ruby/core/file/mtime_spec.rb +++ b/spec/ruby/core/file/mtime_spec.rb @@ -26,6 +26,9 @@ describe "File.mtime" do else File.mtime(__FILE__).usec.should == 0 end + rescue Errno::ENOENT => e + # Windows don't have stat command. + skip e.message end end end |
