diff options
author | obrien <obrien@FreeBSD.org> | 2010-01-03 12:17:51 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2010-01-03 12:17:51 +0000 |
commit | 82a9840cd0329e27ff3c30e21b9e6a53419dd61a (patch) | |
tree | 3b87d41079601d4cf7fb44da852f18963ce5dbec /tools | |
parent | 8ab1021a62e9285f0d7fd8d116963e0e1d45cea4 (diff) | |
download | FreeBSD-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.sh | 14 |
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 } |