sort: Improve sort --random-sort test.
authorBob Proulx <bob@proulx.com>
Thu, 26 Jul 2007 08:26:13 +0000 (02:26 -0600)
committerJim Meyering <jim@meyering.net>
Thu, 26 Jul 2007 08:32:21 +0000 (10:32 +0200)
commit26468bd5a2bab9585ea622bbe05a102551663c18
tree1adc763621969a34a377c9550893d593f1f92c18
parent813d66cea7bab1a98c5a096b325bdba49b5e2eac
sort: Improve sort --random-sort test.

Jim Meyering wrote:
> so if your test were to run sort -R twice, and compare *those* outputs,
> then it would trigger on this bug.

Thanks.  I don't have a system with the failure so I was working
blind.  Here is a rework of the patch.

Bob

>From 76dafb0dde4f8d685eb2b4b43fbf3c1cf9f0ff4b Mon Sep 17 00:00:00 2001
From: Bob Proulx <bob@proulx.com>
Date: Thu, 26 Jul 2007 02:19:49 -0600
Subject: [PATCH] sort: Improve sort --random-sort test.
* tests/misc/sort-rand: If "locale" is available pick a random
non-C locale and check "sort --random-sort" behavior using it.

Signed-off-by: Bob Proulx <bob@proulx.com>
ChangeLog
tests/misc/sort-rand