Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/usr.bin/xlint/lint1 tests/lint: fix check for expected...
details: https://anonhg.NetBSD.org/src/rev/c84448fe90dc
branches: trunk
changeset: 1022960:c84448fe90dc
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Aug 16 06:15:51 2021 +0000
description:
tests/lint: fix check for expected message in msg tests
diffstat:
tests/usr.bin/xlint/lint1/accept.sh | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r c2c52eca060f -r c84448fe90dc tests/usr.bin/xlint/lint1/accept.sh
--- a/tests/usr.bin/xlint/lint1/accept.sh Sun Aug 15 22:22:52 2021 +0000
+++ b/tests/usr.bin/xlint/lint1/accept.sh Mon Aug 16 06:15:51 2021 +0000
@@ -1,5 +1,5 @@
#! /bin/sh
-# $NetBSD: accept.sh,v 1.5 2021/08/08 13:19:51 rillig Exp $
+# $NetBSD: accept.sh,v 1.6 2021/08/16 06:15:51 rillig Exp $
#
# Copyright (c) 2021 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -84,7 +84,8 @@
msgid=${msgid#msg_00}
msgid=${msgid#msg_0}
msgid=${msgid#msg_}
- msgid=${msgid%_*}
+ msgid=${msgid%%_*}
+ echo "msgid for $base is $msgid"
if ! grep "\\[$msgid\\]" "$expfile" >/dev/null; then
echo "$base should trigger the message '$msgid'"
fi
Home |
Main Index |
Thread Index |
Old Index