develooper Front page | perl.perl5.porters | Postings from December 2017

[perl #132663] t/io/fs.t failures on NetBSD with noatime mounts

From:
slaven @ rezic . de
Date:
December 28, 2017 15:50
Subject:
[perl #132663] t/io/fs.t failures on NetBSD with noatime mounts
Message ID:
rt-4.0.24-31293-1514476255-896.132663-75-0@perl.org
# New Ticket Created by  slaven@rezic.de 
# Please include the string:  [perl #132663]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=132663 >



This is a bug report for perl from slaven@rezic.de,
generated with the help of perlbug 1.40 running under perl 5.26.1.


-----------------------------------------------------------------
On NetBSD systems t/io/fs.t may fail:


# Failed test 30 - atime at t/io/fs.t line 324
# Failed test 31 - mtime at t/io/fs.t line 325
# Failed test 36 - atime at t/io/fs.t line 324
# Failed test 37 - mtime at t/io/fs.t line 325
t/io/fs.t .. Failed 4/61 subtests
        (less 5 skipped subtests: 52 okay)

Test Summary Report
-------------------
t/io/fs.t (Wstat: 0 Tests: 61 Failed: 4)
  Failed tests:  30-31, 36-37
Files=1, Tests=61,  1 wallclock secs ( 0.28 usr  0.08 sys +  0.20
cusr  0.11 csys =  0.67 CPU)
Result: FAIL


This happens if the filesystem where the test files are created
s mounted with noatime. Unlike on other OS, it's not possible
to change the accesstime using utime* on NetBSD in this situation.

A related issue with more discussion:
https://github.com/golang/go/issues/19293

Probably it's best to skip this test if $^O eq 'netbsd' and
`mount | grep $tmpdir` shows that noatime is enabled.

As a side note, it looks like the mtime test is also failing,
but this is a limitation in the test script --- probably the last
two fails in check_utime_result() should be differentiated.

And as a last note, I don't have a NetBSD machine to test --- the
problem was just suspected by me and confirmed by Nigel Horne.

-----------------------------------------------------------------
---
Flags:
    category=core
    severity=low
---
This perlbug was built using Perl 5.20.2 - Mon Sep 18 18:13:32 UTC 2017
It is being executed now by  Perl 5.26.1 - Sat Sep 23 09:36:11 CEST 2017.

(perl -V output is irrelevant --- sent from a different machine)




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About