This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
dragonfly doesn't touch ctime as documented, at least on hammer2
authorTony Cook <tony@develop-help.com>
Mon, 26 Oct 2020 16:51:52 +0000 (16:51 +0000)
committerTony Cook <tony@develop-help.com>
Thu, 5 Nov 2020 04:47:30 +0000 (15:47 +1100)
This is a TODO so we find out if it's fixed

t/op/stat.t

index 4fe90ad..663ad9d 100644 (file)
@@ -147,8 +147,13 @@ SKIP: {
         # expect netware to be the same ...
         skip "No ctime concept on this OS", 2
                                      if $Is_MSWin32 || $ufs_no_ctime;
-
-        if( !ok($mtime, 'hard link mtime') ||
+        my $ok_mtime = ok($mtime, 'hard link mtime');
+        local our $TODO;
+        # https://bugs.dragonflybsd.org/issues/3251
+        # this might be hammer/hammer2 specific
+        $TODO = "DragonFly BSD doesn't touch ctime on link()/chmod"
+            if $^O eq "dragonfly" && $Config{myuname} =~ /5\.8/;
+        if(!$ok_mtime ||
             !isnt($mtime, $ctime, 'hard link ctime != mtime') ) {
             print STDERR <<DIAG;
 # Check if you are on a tmpfs of some sort.  Building in /tmp sometimes