From: David Levine Date: Sat, 2 Feb 2013 17:55:23 +0000 (-0600) Subject: Suppress warning from test-manpages that groff can't break a line if X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8d2e57fdcca371daba8a1a07429ef84729e1f01f?hp=eb9d95f038fd0268a821ab332df24ce2592b7482 Suppress warning from test-manpages that groff can't break a line if the user's prefix is too long. --- diff --git a/test/manpages/test-manpages b/test/manpages/test-manpages index ce7d4438..3459a9e4 100755 --- a/test/manpages/test-manpages +++ b/test/manpages/test-manpages @@ -31,8 +31,15 @@ actual=$MH_TEST_DIR/$$.actual rm -f "$expected" "$actual" touch "$expected" "$actual" +#### If the prefix is too long, groff will report that it can't break +#### the `aliasfiles' line in ali.1. +length=`echo $prefix | awk '{print length($0)}'` +[ $length -gt 35 ] && suppress_break_warning=-Wbreak + +warnings="-ww $suppress_break_warning" + for manpage in man?/*.?; do - groff -Tutf8 -mandoc -ww "$manpage" > /dev/null 2>>"$actual" + groff -Tutf8 -mandoc $warnings "$manpage" > /dev/null 2>>"$actual" done check "$expected" "$actual"