diff options
author | Jun Aruga <jaruga@redhat.com> | 2021-06-02 11:13:04 +0200 |
---|---|---|
committer | Jun Aruga <junaruga@users.noreply.github.com> | 2021-06-02 12:38:27 +0200 |
commit | 2048dfc5d37eecb6f1ae18e9d1770a71b46a40b9 (patch) | |
tree | cad723dd026bf885978437792bc3532f76659408 /spec/ruby/core | |
parent | 070caf54d2a17168d3de05aa1633979c8545f8f4 (diff) | |
download | ruby-2048dfc5d37eecb6f1ae18e9d1770a71b46a40b9.tar.gz |
Skip a `File.atime` test randomly failing on Travis ppc64le.
See <https://bugs.ruby-lang.org/issues/17926>.
Diffstat (limited to 'spec/ruby/core')
-rw-r--r-- | spec/ruby/core/file/atime_spec.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/ruby/core/file/atime_spec.rb b/spec/ruby/core/file/atime_spec.rb index 5663e47266..047bb0e10e 100644 --- a/spec/ruby/core/file/atime_spec.rb +++ b/spec/ruby/core/file/atime_spec.rb @@ -22,6 +22,11 @@ describe "File.atime" do if supports_subseconds != 0 expected_time = Time.at(Time.now.to_i + 0.123456) File.utime expected_time, 0, @file + # FIXME: A random failing test on Travis ppc64le. + # https://bugs.ruby-lang.org/issues/17926 + if ENV.key?('TRAVIS') && ENV['TRAVIS_CPU_ARCH'] == 'ppc64le' + skip '[ruby-core:17926] A random failure on Travis ppc64le' + end File.atime(@file).usec.should == expected_time.usec else File.atime(__FILE__).usec.should == 0 |