From ae7b1c383f370ba6e08bf84a263c829a1ee5d7ab Mon Sep 17 00:00:00 2001 From: Pádraig Brady Date: Fri, 16 Mar 2012 12:51:04 +0000 Subject: 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. --- tests/misc/ls-time | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/misc/ls-time b/tests/misc/ls-time index 4419ec7aa..a99829480 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. -- cgit v1.2.3-54-g00ecf