Fri Nov 30 19:55:26 2018 UTC ()
regress/tools: disable failing test on NetBSD

See bin/53754.


(rillig)
diff -r1.1 -r1.2 pkgsrc/regress/tools/files/sh-test.sh

cvs diff -r1.1 -r1.2 pkgsrc/regress/tools/files/Attic/sh-test.sh (expand / switch to unified diff)

--- pkgsrc/regress/tools/files/Attic/sh-test.sh 2006/11/09 12:39:55 1.1
+++ pkgsrc/regress/tools/files/Attic/sh-test.sh 2018/11/30 19:55:26 1.2
@@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
1#! /bin/sh 1#! /bin/sh
2# $NetBSD: sh-test.sh,v 1.1 2006/11/09 12:39:55 rillig Exp $ 2# $NetBSD: sh-test.sh,v 1.2 2018/11/30 19:55:26 rillig Exp $
3# 3#
4 4
5set -e 5set -e
6 6
7mydir=`dirname "$0"` 7mydir=`dirname "$0"`
8. "${mydir}/tests.subr" 8. "${mydir}/tests.subr"
9 9
10# 10#
11# Functions specific for the sh testsuite. 11# Functions specific for the sh testsuite.
12# 12#
13 13
14# usage: sh_test <testname> <input> <expected-output> <args...> 14# usage: sh_test <testname> <input> <expected-output> <args...>
15sh_test() { 15sh_test() {
@@ -27,15 +27,18 @@ EOF @@ -27,15 +27,18 @@ EOF
27sh_assert_equals() { 27sh_assert_equals() {
28 28
29 testcase_start "$1" 29 testcase_start "$1"
30 assert_equal "$1" "$2" "$3" 30 assert_equal "$1" "$2" "$3"
31} 31}
32 32
33# 33#
34# The actual test. 34# The actual test.
35# 35#
36 36
37nl=" 37nl="
38" 38"
39 39
 40# This test fails with /bin/sh from 2018-11-08, see bin/53754.
 41if [ "`uname -s`" != "NetBSD" ]; then
40line="#define bindir \"/usr/bin\" /* bar */" 42line="#define bindir \"/usr/bin\" /* bar */"
41sh_assert_equals "removing C comments" "#define bindir \"/usr/bin\" " "${line%%/\**}" 43sh_assert_equals "removing C comments" "#define bindir \"/usr/bin\" " "${line%%/\**}"
 44fi