summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-03-23 12:31:07 +0100
committerJim Meyering <meyering@redhat.com>2008-03-25 19:10:10 +0100
commitda9f5e7fdffbb31f5c5949d5f931e757aa65e7c7 (patch)
treef8c6b60224a1642b90435f8a07863915496c27b5 /tests
parent157a274da5c092886e7c2d845bf87ebec0fca40c (diff)
downloadcoreutils-da9f5e7fdffbb31f5c5949d5f931e757aa65e7c7.tar.xz
join bug fix: adapt keycmp to work with new order-checking feature
* src/join.c (keycmp): Add two join-field parameters. (check_order, join): Update callers. Reported by Dmitry V. Levin in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12731/focus=13017 * tests/join/Test.pm (chkodr-7): New test for this fix.
Diffstat (limited to 'tests')
-rw-r--r--tests/join/Test.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/join/Test.pm b/tests/join/Test.pm
index 6d91908f4..74fb32628 100644
--- a/tests/join/Test.pm
+++ b/tests/join/Test.pm
@@ -169,7 +169,11 @@ my @tv = (
# --nocheck-order option had any effect. We don't actually want to
# guarantee that join produces this output on stdout.
['chkodr-6', '--nocheck-order',
- [" b 1\n a 2\n", " b Y\n c Z\n"], "b 1 Y\n", 0]
+ [" b 1\n a 2\n", " b Y\n c Z\n"], "b 1 Y\n", 0],
+
+# Before 6.10.143, this would mistakenly fail with the diagnostic:
+# join: File 1 is not in sorted order
+['chkodr-7', '-12', ["2 a\n1 b\n", ""], "", 0],
)
;