From: Pádraig Brady Date: Fri, 16 Mar 2012 12:51:04 +0000 (+0000) Subject: tests: avoid an ls-time false positive on Solaris 10 X-Git-Tag: v8.16~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae7b1c383f370ba6e08bf84a263c829a1ee5d7ab;p=thirdparty%2Fcoreutils.git tests: avoid an ls-time false positive on Solaris 10 * tests/misc/ls-time: Force a ctime update as updating the atime doesn't update ctime on tmpfs on Solaris 10. --- diff --git a/tests/misc/ls-time b/tests/misc/ls-time index 4419ec7aa8..a998294801 100755 --- a/tests/misc/ls-time +++ b/tests/misc/ls-time @@ -41,6 +41,9 @@ touch -a -d "$u2" b || framework_failure_ # Make sure A has ctime at least 1 second more recent than C's. sleep 2 touch -a -d "$u1" a || framework_failure_ +# Updating the atime is usually enough to update the ctime, but on +# Solaris 10's tmpfs, ctime is not updated, so force an update here: +{ ln a a-ctime && rm a-ctime; } || framework_failure_ # A has ctime more recent than C.