From owner-cvs-src-old@FreeBSD.ORG Sat Dec 12 18:22:05 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DDFE106566C for ; Sat, 12 Dec 2009 18:22:05 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 1E6428FC16 for ; Sat, 12 Dec 2009 18:22:05 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nBCIM53s031601 for ; Sat, 12 Dec 2009 18:22:05 GMT (envelope-from jh@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nBCIM4Oi031600 for cvs-src-old@freebsd.org; Sat, 12 Dec 2009 18:22:04 GMT (envelope-from jh@repoman.freebsd.org) Message-Id: <200912121822.nBCIM4Oi031600@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jh@repoman.freebsd.org using -f From: Jaakko Heinonen Date: Sat, 12 Dec 2009 18:18:46 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/tools/regression/usr.bin Makefile src/tools/regression/usr.bin/comm Makefile regress.00.out regress.00a.in regress.00b.in regress.01.out regress.01a.in regress.01b.in regress.02.out regress.02a.in regress.02b.in regress.sh regress.t ... X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2009 18:22:05 -0000 jh 2009-12-12 18:18:46 UTC FreeBSD src repository Modified files: tools/regression/usr.bin Makefile usr.bin/comm comm.c Added files: tools/regression/usr.bin/comm Makefile regress.00.out regress.00a.in regress.00b.in regress.01.out regress.01a.in regress.01b.in regress.02.out regress.02a.in regress.02b.in regress.sh regress.t Log: SVN rev 200442 on 2009-12-12 18:18:46Z by jh Don't read the newline character to line buffer because lines are passed to wcscoll(3). Newline characters could cause incorrect results when comparing lines. Also, if an input line didn't contain a newline character, it was omitted from the output. According to my interpretation, SUSv3 requires that the newline is always printed. Add regression tests for the cases. [1] PR: bin/140976 Submitted by: D'Arcy Cain (original version) [1] Approved by: trasz (mentor) Revision Changes Path 1.14 +1 -1 src/tools/regression/usr.bin/Makefile 1.1 +4 -0 src/tools/regression/usr.bin/comm/Makefile (new) 1.1 +2 -0 src/tools/regression/usr.bin/comm/regress.00.out (new) 1.1 +5 -0 src/tools/regression/usr.bin/comm/regress.00a.in (new) 1.1 +2 -0 src/tools/regression/usr.bin/comm/regress.00b.in (new) 1.1 +2 -0 src/tools/regression/usr.bin/comm/regress.01.out (new) 1.1 +5 -0 src/tools/regression/usr.bin/comm/regress.01a.in (new) 1.1 +2 -0 src/tools/regression/usr.bin/comm/regress.01b.in (new) 1.1 +5 -0 src/tools/regression/usr.bin/comm/regress.02.out (new) 1.1 +3 -0 src/tools/regression/usr.bin/comm/regress.02a.in (new) 1.1 +3 -0 src/tools/regression/usr.bin/comm/regress.02b.in (new) 1.1 +13 -0 src/tools/regression/usr.bin/comm/regress.sh (new) 1.1 +6 -0 src/tools/regression/usr.bin/comm/regress.t (new) 1.23 +13 -16 src/usr.bin/comm/comm.c