Skip a `File.atime` test randomly failing on Travis ppc64le.

See <https://bugs.ruby-lang.org/issues/17926>.
This commit is contained in:
Jun Aruga 2021-06-02 11:13:04 +02:00 коммит произвёл Jun Aruga
Родитель 070caf54d2
Коммит 2048dfc5d3
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -22,6 +22,11 @@ describe "File.atime" do
if supports_subseconds != 0 if supports_subseconds != 0
expected_time = Time.at(Time.now.to_i + 0.123456) expected_time = Time.at(Time.now.to_i + 0.123456)
File.utime expected_time, 0, @file 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 File.atime(@file).usec.should == expected_time.usec
else else
File.atime(__FILE__).usec.should == 0 File.atime(__FILE__).usec.should == 0