summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xregress/regress.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/regress/regress.sh b/regress/regress.sh
index 1a65ad0d..9a98c498 100755
--- a/regress/regress.sh
+++ b/regress/regress.sh
@@ -23,7 +23,9 @@ for file in */*.in */*/*.in; do
printf "%s: " "$file"
${MANDOC} "$file" > test.mandoc 2> /dev/null
${NROFF} ${OUTPUT} -mandoc "$file" > test.nroff 2> /dev/null
- if cmp -s test.mandoc test.nroff; then
+ mandoclen=`head -n 1 test.mandoc | wc -c`
+ nrofflen=`head -n 1 test.nroff | wc -c`
+ if cmp -s test.mandoc test.nroff $mandoclen $nrofflen; then
rm -f test.mandoc test.nroff
echo "passed"
pass=`expr $pass + 1`