summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-03-16 12:51:04 +0000
committerPádraig Brady <P@draigBrady.com>2012-03-16 14:41:51 +0000
commitae7b1c383f370ba6e08bf84a263c829a1ee5d7ab (patch)
tree311e2cc64a0d082d8958fe530e2ef257bc51887e
parentbe17e3b98a178ea6e2c973bf49282f11f7060353 (diff)
downloadcoreutils-ae7b1c383f370ba6e08bf84a263c829a1ee5d7ab.tar.gz
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.
-rwxr-xr-xtests/misc/ls-time3
1 files changed, 3 insertions, 0 deletions
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.