pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/doc/guide/files doc/guide: document idiomatic use of t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e2ca3d18362
branches:  trunk
changeset: 421103:0e2ca3d18362
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jan 11 11:50:51 2020 +0000

description:
doc/guide: document idiomatic use of the regress_fail function

diffstat:

 doc/guide/files/regression.xml |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 7197aa40012c -r 0e2ca3d18362 doc/guide/files/regression.xml
--- a/doc/guide/files/regression.xml    Sat Jan 11 11:48:59 2020 +0000
+++ b/doc/guide/files/regression.xml    Sat Jan 11 11:50:51 2020 +0000
@@ -1,4 +1,4 @@
-<!-- $NetBSD: regression.xml,v 1.7 2020/01/11 11:48:59 rillig Exp $ -->
+<!-- $NetBSD: regression.xml,v 1.8 2020/01/11 11:50:51 rillig Exp $ -->
 
 <chapter id="regression"> <?dbhtml filename="regression.html"?>
 <title>Regression tests</title>
@@ -81,6 +81,7 @@
         output_require "Example"
         output_require "^[[:alpha:]+[[:space:]][[:alpha:]]{6}$"
         output_prohibit "no such file or directory"
+        regress_fail "expected $expected but got $actual for input $input"
 }
 </programlisting>
 



Home | Main Index | Thread Index | Old Index