diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-12 18:50:31 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-01-12 20:02:50 +0900 |
commit | 3113bc8d445c4c24ed3827adfc50bb88c99b6364 (patch) | |
tree | b8f2525917892abc9201c0f6819b15f7c6fb8448 /spec/ruby/core/file/ctime_spec.rb | |
parent | 3103ed4159240e99614c9789bc0f869574a1f9db (diff) |
stat command is not provided on Windows
Diffstat (limited to 'spec/ruby/core/file/ctime_spec.rb')
-rw-r--r-- | spec/ruby/core/file/ctime_spec.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |