From 32626bde6d68508109a99dfe0a089a0025f56085 Mon Sep 17 00:00:00 2001 From: Pádraig Brady
Date: Fri, 14 Jan 2011 08:46:21 +0000 Subject: join: ensure --header skips the order check with empty files * src/join.c: Skip the header even if one of the files is empty. * tests/misc/join: Add a test case. * NEWS: Mention the fix --- tests/misc/join | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/misc/join b/tests/misc/join index 3cf278b9f..5086ee75e 100755 --- a/tests/misc/join +++ b/tests/misc/join @@ -239,6 +239,12 @@ my @tv = ( [ "ID1 Name\n1 A\n2 B\n", "ID2 Color\n1 red\n"], "ID1 Name Color\n1 A red\n", 0], +# '--header' doesn't check order of a header +# even if there is no header in the second file +['header-6', '--header -a1', + [ "ID1 Name\n1 A\n", ""], + "ID1 Name\n1 A\n", 0], + ); # Convert the above old-style test vectors to the newer -- cgit v1.2.3-70-g09d2