From da9f5e7fdffbb31f5c5949d5f931e757aa65e7c7 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 23 Mar 2008 12:31:07 +0100 Subject: 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. --- tests/join/Test.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/join') 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], ) ; -- cgit v1.2.3-54-g00ecf