groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] [tests]: Tolerate U register defaulting to 1.


From: Colin Watson
Subject: [PATCH] [tests]: Tolerate U register defaulting to 1.
Date: Tue, 11 Jul 2023 17:57:08 +0100

If tmac/man.local is patched to set the U register to 1, then one test
fails.  That test is concerned specifically with the rendering of long
URLs when they are not turned into OSC 8 hyperlinks, so it makes sense
to disable OSC 8 hyperlinks for that test.

* tmac/tests/an_UE-breaks-before-long-URIs.sh: Run groff with -rU0.
---
 tmac/tests/an_UE-breaks-before-long-URIs.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tmac/tests/an_UE-breaks-before-long-URIs.sh 
b/tmac/tests/an_UE-breaks-before-long-URIs.sh
index 0b151fd8d..f39ceaea1 100755
--- a/tmac/tests/an_UE-breaks-before-long-URIs.sh
+++ b/tmac/tests/an_UE-breaks-before-long-URIs.sh
@@ -48,10 +48,10 @@ wail () {
     fail=yes
 }
 
-output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -man)
+output=$(printf "%s" "$input" | "$groff" -Tascii -P-cbou -rU0 -man)
 echo "$output"
 error=$(printf "%s" "$input" \
-    | "$groff" -Tascii -P-cbou -man -ww -z 2>&1)
+    | "$groff" -Tascii -P-cbou -rU0 -man -ww -z 2>&1)
 
 echo "testing that no diagnostic messages are produced" >&2
 test -z "$error" || wail
-- 
2.39.2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]