gbranden pushed a commit to branch master
in repository groff.

commit df911c214012e6e306d223fbdfa132febfde2b4b
Author: G. Branden Robinson <[email protected]>
AuthorDate: Wed Oct 21 22:20:35 2026 -0500

    [groff]: Test use of multiple `pi` requests.
    
    * src/roff/groff/tests/pi-request-works.sh: Add test of multiple
      pipeline command construction.  Dump new `.pi` register while we're at
      it.
---
 ChangeLog                                | 6 ++++++
 src/roff/groff/tests/pi-request-works.sh | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 147922bc7..ec40a4894 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2026-10-21  G. Branden Robinson <[email protected]>
+
+       * src/roff/groff/tests/pi-request-works.sh: Add test of multiple
+       pipeline command construction.  Dump new `.pi` register while
+       we're at it.
+
 2026-10-21  G. Branden Robinson <[email protected]>
 
        [troff]: Implement `.pi` register for orthogonality and to make
diff --git a/src/roff/groff/tests/pi-request-works.sh 
b/src/roff/groff/tests/pi-request-works.sh
index a85b04d7f..1c9823695 100755
--- a/src/roff/groff/tests/pi-request-works.sh
+++ b/src/roff/groff/tests/pi-request-works.sh
@@ -31,6 +31,12 @@ output=$(printf '.pi sed s/^/#/\nhello\n' | "$groff" -UZ) || 
wail
 echo "$output"
 echo "$output" | grep -Eqx '^#t *hello'
 
+echo "checking that multiple 'pi' requests work" >&2
+output=$(printf '.pi sed s/^/#/\n.pi sed s/^#/##/\n.pnr .pi\nhello\n' \
+  | "$groff" -UZ) || wail
+echo "$output"
+echo "$output" | grep -Eqx '^##t *hello'
+
 echo "checking that parser returns to correct state after 'pi'" >&2
 output=$(printf '.pi cat\n.tm goodbye\n' \
     | "$groff" -UZ 2>&1 > /dev/null) || wail

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to