summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-05-04 20:29:26 +0000
committerrillig <rillig@pkgsrc.org>2020-05-04 20:29:26 +0000
commit22b7e5a11b3becf777324829459f7104dc2c576f (patch)
tree44eb514a288e6bc4e5e72775ebd067a1749a9fea /regress
parentfea1939c16c6697b49c54e1d3836d85f302cc03d (diff)
downloadpkgsrc-22b7e5a11b3becf777324829459f7104dc2c576f.tar.gz
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 (limited to 'regress')
-rw-r--r--regress/check-portability/Makefile15
-rw-r--r--regress/check-portability/spec8
2 files changed, 4 insertions, 19 deletions
diff --git a/regress/check-portability/Makefile b/regress/check-portability/Makefile
deleted file mode 100644
index 90186e05fe6..00000000000
--- a/regress/check-portability/Makefile
+++ /dev/null
@@ -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
-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 --git a/regress/check-portability/spec b/regress/check-portability/spec
index f86d8281461..f572d39df85 100644
--- a/regress/check-portability/spec
+++ b/regress/check-portability/spec
@@ -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 @@ do_test() {
} >$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"
}