aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/trail
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2012-03-19 05:53:49 -0400
committeradmin <admin@branchable.com>2012-03-19 05:53:49 -0400
commitc344a5830c8347a41047f0f0ac916311af43e6f6 (patch)
tree16932c2542a83b324662e624db13d15213e80230 /doc/plugins/trail
parent914c362197597278bf077a263da0e5cb5021fc6b (diff)
downloadikiwiki-c344a5830c8347a41047f0f0ac916311af43e6f6.tar
ikiwiki-c344a5830c8347a41047f0f0ac916311af43e6f6.tar.gz
fixed, I think?
Diffstat (limited to 'doc/plugins/trail')
-rw-r--r--doc/plugins/trail/discussion.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/plugins/trail/discussion.mdwn b/doc/plugins/trail/discussion.mdwn
index 2ddf2ce45..e151466f9 100644
--- a/doc/plugins/trail/discussion.mdwn
+++ b/doc/plugins/trail/discussion.mdwn
@@ -67,3 +67,23 @@ t/trail.t .................... 1/?
> but got: "trail=sorting n=sorting/old p=sorting/end"
>
> Perhaps a legitimate bug? --[[Joey]]
+
+>> I saw this while developing, but couldn't reproduce it, and assumed
+>> I'd failed to update `blib` before `make test`, or some such.
+>> In fact it's a race condition, I think.
+>>
+>> The change and failure here is that `sorting.mdwn` is modified
+>> to sort its trail in reverse order of title. Previously, it
+>> was sorted by order of directives in the page, and secondarily
+>> by whatever sort order each directive specified (e.g.
+>> new, old and ancient were sorted by increasing age).
+>> `old` appearing between `new` and `ancient`, and `new` appearing
+>> between `end` and `old`, indicates that this re-sorting has not
+>> actually taken effect, and the old sort order is still used.
+>>
+>> I believe this is because the system time (as an integer) remained
+>> the same for the entire test, and mtimes as used in ikiwiki
+>> only have a 1-second resolution. We can either fix this with
+>> utime or sleep; I chose utime, since sleeping for 1 second would
+>> slow down the test significantly. Please merge or cherry-pick
+>> `smcv/trail-test` (there's only one commit). --[[smcv]]