Project

General

Profile

Bug #15972

TestFileExhaustive#test_birthtime test failure

Added by vo.x (Vit Ondruch) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 2.7.0dev (2019-07-01T14:16:47Z master 7ff2bfed92) [x86_64-linux]
[ruby-core:93477]

Description

On my Fedora Rawhide, I observer following test failure:

  1) Error:
TestFileExhaustive#test_birthtime:
NotImplementedError: birthtime is unimplemented on this filesystem
    /builddir/build/BUILD/ruby-2.7.0-76851381cb/test/ruby/test_file_exhaustive.rb:628:in `birthtime'
    /builddir/build/BUILD/ruby-2.7.0-76851381cb/test/ruby/test_file_exhaustive.rb:628:in `block in test_birthtime'
    /builddir/build/BUILD/ruby-2.7.0-76851381cb/test/ruby/test_file_exhaustive.rb:627:in `each'
    /builddir/build/BUILD/ruby-2.7.0-76851381cb/test/ruby/test_file_exhaustive.rb:627:in `test_birthtime'
$ rpm -q kernel
kernel-5.1.6-300.fc30.x86_64
kernel-5.1.7-300.fc30.x86_64
kernel-5.1.12-300.fc30.x86_64

$ uname -a
Linux 5ff87f630af347699a341a1277b8ddcc 5.1.12-300.fc30.x86_64 #1 SMP Wed Jun 19 15:19:49 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
#1

Updated by nobu (Nobuyoshi Nakada) about 1 year ago

  • Status changed from Open to Closed

Applied in changeset git|e9ea494171745cc22f458952b0aaf4443820caa9.


The behavior of statx(2) depends on the filesystem

birthtime may not be supported on some filesystems, and
NotImplementedError can be raised. [Bug #15972]

Updated by vo.x (Vit Ondruch) about 1 year ago

I just wonder what FS are supported actually. I am using Ext4, which is not an esoteric FS IMO and this works:

$ stat --printf='%w' test/ruby/test_file_exhaustive.rb 
2019-07-03 12:33:07.270913105 +0200

Also available in: Atom PDF