summaryrefslogtreecommitdiff
path: root/tests/misc/join
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2012-07-23 09:29:57 +0100
committerPádraig Brady <P@draigBrady.com>2012-07-23 09:54:18 +0100
commitd75e93cb76c504e766e317ea0891285e4510ae67 (patch)
treea313cdcfb5adb6cc94968e9f93a709b906860d4e /tests/misc/join
parentf93d5985a2bc468f9f92f3bb8dedb0d3bf0807d8 (diff)
downloadcoreutils-d75e93cb76c504e766e317ea0891285e4510ae67.tar.xz
tests: add a test for a previously fixed output format bug in join
Add a test and NEWS entry for a bug inadvertently fixed in a refactoring in commit v8.9-32-gd4db0cb * tests/misc/join (v2-format): Add a new test. * THANKS.in: Add the reporter. * NEWS: Mention the old bug. * cfg.mk (old_NEWS_hash): Update. Reported-by: Jean-Pierre Tosoni
Diffstat (limited to 'tests/misc/join')
-rwxr-xr-xtests/misc/join4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/misc/join b/tests/misc/join
index a3fd1a8fa..62074b7be 100755
--- a/tests/misc/join
+++ b/tests/misc/join
@@ -147,6 +147,10 @@ my @tv = (
["a,1,,2\nb,1,2\n", "a,3,4\nb,3,4\n"],
"a,1,,2,3,4\nb,1,2,,3,4\n"],
+# For -v2, print the match field correctly with the default output format,
+# when that match field is different between file 1 and file 2. Fixed in 8.10
+['v2-order', '-v2 -2 2', ["", "2 1\n"], "1 2\n", 0],
+
# From Tim Smithers: fixed in 1.22l
['trailing-sp', '-t: -1 1 -2 1', ["a:x \n", "a:y \n"], "a:x :y \n", 0],