Source-Changes-HG archive

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

[src/trunk]: src/tests/lib/libcurses/director Bracket strings being validated...



details:   https://anonhg.NetBSD.org/src/rev/8f393ce3878a
branches:  trunk
changeset: 451896:8f393ce3878a
user:      blymn <blymn%NetBSD.org@localhost>
date:      Tue Jun 11 10:22:35 2019 +0000

description:
Bracket strings being validated with markers to ensure sneaky whitespeace
is noticed.

diffstat:

 tests/lib/libcurses/director/testlang_parse.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r fb2a81b3c2f6 -r 8f393ce3878a tests/lib/libcurses/director/testlang_parse.y
--- a/tests/lib/libcurses/director/testlang_parse.y     Tue Jun 11 10:17:24 2019 +0000
+++ b/tests/lib/libcurses/director/testlang_parse.y     Tue Jun 11 10:22:35 2019 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: testlang_parse.y,v 1.14 2015/01/04 20:19:46 christos Exp $     */
+/*     $NetBSD: testlang_parse.y,v 1.15 2019/06/11 10:22:35 blymn Exp $        */
 
 /*-
  * Copyright 2009 Brett Lymn <blymn%NetBSD.org@localhost>
@@ -1239,12 +1239,12 @@
 {
        if (((check == 0) && strcmp(expected, value) != 0) ||
            ((check == 1) && strcmp(expected, value) == 0))
-               errx(1, "Validate expected %s %s %s line %zu of file %s",
+               errx(1, "Validate expected >%s< %s >%s< line %zu of file %s",
                    expected,
                    (check == 0)? "matching" : "not matching", value,
                    line, cur_file);
        if (verbose) {
-               fprintf(stderr, "Validated expected value %s %s %s "
+               fprintf(stderr, "Validated expected value >%s< %s >%s< "
                    "at line %zu of file %s\n", expected,
                    (check == 0)? "matches" : "does not match",
                    value, line, cur_file);



Home | Main Index | Thread Index | Old Index