groff-commit
[Top][All Lists]
Advanced

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

[groff] 02/03: test-groff.in: Stop passing groff -b and -ww.


From: G. Branden Robinson
Subject: [groff] 02/03: test-groff.in: Stop passing groff -b and -ww.
Date: Fri, 30 Apr 2021 10:37:09 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 5aaf04cdf6e8ca194e4c8af2678d4c2743677903
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Apr 30 21:53:53 2021 +1000

    test-groff.in: Stop passing groff -b and -ww.
    
    * test-groff.in: Stop passing the built groff executable -b and -ww
      options by default.  This reverses a change from 2017.  Dave Kemper
      has convincingly argued that there's no way to override -b and turn
      backtraces on warnings/errors back off, and that the built groff
      should behave as much like a "normal" one as possible.  The latter
      factor is of added importance now that we are using test-groff for
      generation of documents.
    
    * src/roff/groff/tests/regression_savannah_58153.sh: Adapt.
    
    If you're a bleeding edge groff user who runs it straight from
    build trees, I recommend writing shell aliases or functions to
    capture the desired behavior.
    
        alias tg='./build/test-groff -b -ww'
        alias tgu='./build/test-groff -b -ww -Tutf8'
---
 ChangeLog                                         | 12 ++++++++++++
 src/roff/groff/tests/regression_savannah_58153.sh |  2 +-
 test-groff.in                                     |  2 +-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5d4b52b..a838c00 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2021-04-30  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * test-groff.in: Stop passing the built groff executable -b and
+       -ww options by default.  This reverses a change from 2017.  Dave
+       Kemper has convincingly argued that there's no way to override
+       -b and turn backtraces on warnings/errors back off, and that the
+       built groff should behave as much like a "normal" one as
+       possible.  The latter factor is of added importance now that we
+       are using test-groff for generation of documents.
+
+       * src/roff/groff/tests/regression_savannah_58153.sh: Adapt.
+
+2021-04-30  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/s.tmac (BX): Add alternative implementation for terminal
        {nroff} devices.  Store width of boxed text, adding .4m only on
        troff devices (to make room for the vertical box lines).  Break
diff --git a/src/roff/groff/tests/regression_savannah_58153.sh 
b/src/roff/groff/tests/regression_savannah_58153.sh
index 2db0213..5ad92c4 100755
--- a/src/roff/groff/tests/regression_savannah_58153.sh
+++ b/src/roff/groff/tests/regression_savannah_58153.sh
@@ -22,7 +22,7 @@ groff="${abs_top_builddir:-.}/test-groff"
 
 # Ensure that we get backtrace output across file and pipe boundaries.
 # Savannah #58153.
-OUT=$("$groff" -U 2>&1 >/dev/null <<EOF
+OUT=$("$groff" -b -ww -U 2>&1 >/dev/null <<EOF
 .pso printf '\\\s[-20]\\\n'
 EOF
 )
diff --git a/test-groff.in b/test-groff.in
index f92e2ab..37999b9 100644
--- a/test-groff.in
+++ b/test-groff.in
@@ -49,4 +49,4 @@ $SEP$builddir/contrib/rfc1345\
 
 export GROFF_BIN_PATH GROFF_COMMAND_PREFIX GROFF_FONT_PATH GROFF_TMAC_PATH
 
-exec $builddir/groff -b -ww ${1+"$@"}
+exec $builddir/groff ${1+"$@"}



reply via email to

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