]> diplodocus.org Git - nmh/blobdiff - test/manpages/test-manpages
rand()/srand() are not cryptographically secure PRNGs. Some systems
[nmh] / test / manpages / test-manpages
index 3459a9e..8ad6337 100755 (executable)
@@ -36,10 +36,14 @@ touch "$expected" "$actual"
 length=`echo $prefix | awk '{print length($0)}'`
 [ $length -gt 35 ]  &&  suppress_break_warning=-Wbreak
 
-warnings="-ww $suppress_break_warning"
+#### OpenBSD's mandoc spits out a lot of warnings.
+case `uname -s` in
+  OpenBSD) warnings="-ww -Wel $suppress_break_warning" ;;
+  *)       warnings="-ww $suppress_break_warning" ;;
+esac
 
 for manpage in man?/*.?; do
-  groff -Tutf8 -mandoc $warnings "$manpage" > /dev/null 2>>"$actual"
+  groff -Tutf8 -mandoc $warnings "$manpage" >/dev/null 2>>"$actual"
 done
 
 check "$expected" "$actual"