>From 48cffb9656e8ed9f243ca9ab21f271980f618819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Fri, 16 Mar 2012 12:51:04 +0000 Subject: [PATCH] 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 | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/tests/misc/ls-time b/tests/misc/ls-time index 4419ec7..ae9cdbc 100755 --- a/tests/misc/ls-time +++ b/tests/misc/ls-time @@ -41,6 +41,10 @@ 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_ +# Usually updating the atime is enough to update the ctime, +# however on tmpfs on solaris 10, 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. -- 1.7.6.4