summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2010-01-03 12:17:51 +0000
committerobrien <obrien@FreeBSD.org>2010-01-03 12:17:51 +0000
commit82a9840cd0329e27ff3c30e21b9e6a53419dd61a (patch)
tree3b87d41079601d4cf7fb44da852f18963ce5dbec /tools
parent8ab1021a62e9285f0d7fd8d116963e0e1d45cea4 (diff)
downloadFreeBSD-src-82a9840cd0329e27ff3c30e21b9e6a53419dd61a.zip
FreeBSD-src-82a9840cd0329e27ff3c30e21b9e6a53419dd61a.tar.gz
Use t1 & t2 as more symbolic than 'a' and 'b' for the two times.
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/bin/date/regress.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/tools/regression/bin/date/regress.sh b/tools/regression/bin/date/regress.sh
index 2eb2309..9f4b68b 100644
--- a/tools/regression/bin/date/regress.sh
+++ b/tools/regression/bin/date/regress.sh
@@ -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
}
OpenPOWER on IntegriCloud