Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/regress/check-portability regress/check-portability: f...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/18e6f720db53
branches:  trunk
changeset: 430834:18e6f720db53
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon May 04 20:29:26 2020 +0000

description:
regress/check-portability: fix regression test for added line numbers

The line numbers were added to the output in check-portability.awk r1.12.

diffstat:

 regress/check-portability/Makefile |  15 ---------------
 regress/check-portability/spec     |   8 ++++----
 2 files changed, 4 insertions(+), 19 deletions(-)

diffs (41 lines):

diff -r 5470bd79a97f -r 18e6f720db53 regress/check-portability/Makefile
--- a/regress/check-portability/Makefile        Mon May 04 19:14:59 2020 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2016/06/11 10:48:28 rillig Exp $
-
-DISTNAME=      check-portability-1.0
-CATEGORIES=    regress
-MASTER_SITES=  # none
-DISTFILES=     # none
-
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
-COMMENT=       Tests whether the portability check works as expected
-LICENSE=       2-clause-bsd
-
-PLIST_SRC=     # none
-NO_CHECKSUM=   yes
-
-.include "../../mk/bsd.pkg.mk"
diff -r 5470bd79a97f -r 18e6f720db53 regress/check-portability/spec
--- a/regress/check-portability/spec    Mon May 04 19:14:59 2020 +0000
+++ b/regress/check-portability/spec    Mon May 04 20:29:26 2020 +0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-# $NetBSD: spec,v 1.1 2016/06/11 10:48:28 rillig Exp $
+# $NetBSD: spec,v 1.2 2020/05/04 20:29:26 rillig Exp $
 set -eu
 
 check_portability() {
@@ -19,8 +19,8 @@
 } >$TEST_OUTFILE 2>&1
 
 check_result() {
-       output_require "0 for files/portability-ok"
-       output_require "files/portability-test-eqeq: if \["
-       output_require "files/portability-test-eqeq: elif test"
+       output_require "result 0 for files/portability-ok"
+       output_require "files/portability-test-eqeq:[0-9]*: if \["
+       output_require "files/portability-test-eqeq:[0-9]*: elif test"
        output_require "result 1 for files/portability-test-eqeq"
 }



Home | Main Index | Thread Index | Old Index