From owner-svn-src-head@FreeBSD.ORG Sun Jan 3 12:17:51 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A64E1106568F; Sun, 3 Jan 2010 12:17:51 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 94F7F8FC0A; Sun, 3 Jan 2010 12:17:51 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o03CHprI096508; Sun, 3 Jan 2010 12:17:51 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o03CHp65096506; Sun, 3 Jan 2010 12:17:51 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <201001031217.o03CHp65096506@svn.freebsd.org> From: "David E. O'Brien" Date: Sun, 3 Jan 2010 12:17:51 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r201427 - head/tools/regression/bin/date X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Jan 2010 12:17:51 -0000 Author: obrien Date: Sun Jan 3 12:17:51 2010 New Revision: 201427 URL: http://svn.freebsd.org/changeset/base/201427 Log: Use t1 & t2 as more symbolic than 'a' and 'b' for the two times. Modified: head/tools/regression/bin/date/regress.sh Modified: head/tools/regression/bin/date/regress.sh ============================================================================== --- head/tools/regression/bin/date/regress.sh Sun Jan 3 11:53:48 2010 (r201426) +++ head/tools/regression/bin/date/regress.sh Sun Jan 3 12:17:51 2010 (r201427) @@ -29,24 +29,22 @@ check() A1=$2 A2=$3 - if [ -z "${A2}" ]; then A2=${A1}; fi - count=`expr ${count} + 1` + if [ -z "${A2}" ]; then A2=${A1}; fi + R=`date -r ${TEST1} +%${S}` if [ "${R}" = "${A1}" ]; then - echo "ok ${count} - ${S}(a)" + echo "ok ${S}{t1}" else - echo "no ok ${count} - ${S}(a) (got ${R}, expected ${A1})" + echo "no ok ${S}{t1} - (got ${R}, expected ${A1})" fi - count=`expr ${count} + 1` - R=`date -r ${TEST2} +%${S}` if [ "${R}" = "${A2}" ]; then - echo "ok ${count} - ${S}(b)" + echo "ok ${S}{t2}" else - echo "no ok ${count} - ${S}(b) (got ${R}, expected ${A2})" + echo "no ok ${S}{t2} - (got ${R}, expected ${A2})" fi }