Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 2010 12:17:51 +0000 (UTC)
From:      "David E. O'Brien" <obrien@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201427 - head/tools/regression/bin/date
Message-ID:  <201001031217.o03CHp65096506@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001031217.o03CHp65096506>