diff options
author | James E Keenan <jkeenan@cpan.org> | 2018-10-29 16:35:35 -0400 |
---|---|---|
committer | James E Keenan <jkeenan@cpan.org> | 2018-10-30 17:28:22 -0400 |
commit | 40f909803ebee7624103ac43c37efa8f2ba605ae (patch) | |
tree | 0c7c18f280c4b2ccf9bf4a5397256a413652619a | |
parent | ea701e772a972c7cce818cbe61181453aaa58647 (diff) | |
download | perl-40f909803ebee7624103ac43c37efa8f2ba605ae.tar.gz |
Use t/test.pl's note() function
... rather than print(), for informational statements.
-rw-r--r-- | t/io/fs.t | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -253,7 +253,7 @@ check_utime_result(); utime undef, undef, 'b'; ($atime,$mtime) = (stat 'b')[8,9]; -print "# utime undef, undef --> $atime, $mtime\n"; +note("# utime undef, undef --> $atime, $mtime"); isnt($atime, 500000000, 'atime'); isnt($mtime, 500000000 + $delta, 'mtime'); @@ -289,18 +289,18 @@ sub check_utime_result { skip ("# TODO - hit VOS bug posix-2055 - access time does not follow POSIX rules for an open file.", 2); } - print "# atime - $atime mtime - $mtime delta - $delta\n"; + note("# atime - $atime mtime - $mtime delta - $delta"); if($atime == 500000000 && $mtime == 500000000 + $delta) { pass('atime'); pass('mtime'); } else { if ($^O =~ /\blinux\b/i) { - print "# Maybe stat() cannot get the correct atime, ". - "as happens via NFS on linux?\n"; + note("# Maybe stat() cannot get the correct atime, ". + "as happens via NFS on linux?"); $foo = (utime 400000000,500000000 + 2*$delta,'b'); my ($new_atime, $new_mtime) = (stat('b'))[8,9]; - print "# newatime - $new_atime nemtime - $new_mtime\n"; + note("# newatime - $new_atime nemtime - $new_mtime"); if ($new_atime == $atime && $new_mtime - $mtime == $delta) { pass("atime - accounted for possible NFS/glibc2.2 bug on linux"); pass("mtime - accounted for possible NFS/glibc2.2 bug on linux"); |