diff options
author | wiz <wiz@pkgsrc.org> | 2006-10-16 00:37:56 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2006-10-16 00:37:56 +0000 |
commit | a19f2361c20c2dbb1158832cf9e50498ef908278 (patch) | |
tree | 9b67530268b42e953800490a6f867e3a535ad805 /devel/cogito | |
parent | 74c90c554100f1ebd9719caf8378721f40cc01fc (diff) | |
download | pkgsrc-a19f2361c20c2dbb1158832cf9e50498ef908278.tar.gz |
Fix "test ==".
Diffstat (limited to 'devel/cogito')
-rw-r--r-- | devel/cogito/distinfo | 3 | ||||
-rw-r--r-- | devel/cogito/patches/patch-aa | 33 |
2 files changed, 35 insertions, 1 deletions
diff --git a/devel/cogito/distinfo b/devel/cogito/distinfo index 299fa717c7f..d8d1b13ec3a 100644 --- a/devel/cogito/distinfo +++ b/devel/cogito/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.1.1.1 2006/09/02 20:58:22 rillig Exp $ +$NetBSD: distinfo,v 1.2 2006/10/16 00:44:15 wiz Exp $ SHA1 (cogito-0.16.tar.bz2) = c2f05217a6f9e1bd4233d2a101bb6bbacf0521b7 RMD160 (cogito-0.16.tar.bz2) = ca92effa6d313b430b9f15f238c187a3318a50ef Size (cogito-0.16.tar.bz2) = 80407 bytes +SHA1 (patch-aa) = 45f08d99399f698a196469b6dec78bc4277089fa diff --git a/devel/cogito/patches/patch-aa b/devel/cogito/patches/patch-aa new file mode 100644 index 00000000000..e01c89850b3 --- /dev/null +++ b/devel/cogito/patches/patch-aa @@ -0,0 +1,33 @@ +$NetBSD: patch-aa,v 1.1 2006/10/16 00:44:15 wiz Exp $ + +--- t/test-lib.sh.orig 2005-11-27 16:26:16.000000000 +0000 ++++ t/test-lib.sh +@@ -87,16 +87,16 @@ test_failure_ () { + say "FAIL $test_count: $1" + shift + echo "$@" | sed -e 's/^/ /' +- test "$immediate" == "" || exit 1 ++ test "$immediate" = "" || exit 1 + } + + + test_debug () { +- test "$debug" == "" || eval "$1" ++ test "$debug" = "" || eval "$1" + } + + test_expect_failure () { +- test "$#" == 2 || ++ test "$#" = 2 || + error "bug in the test script: not 2 parameters to test-expect-failure" + say >&3 "expecting failure: $2" + if eval >&3 2>&4 "$2" +@@ -108,7 +108,7 @@ test_expect_failure () { + } + + test_expect_success () { +- test "$#" == 2 || ++ test "$#" = 2 || + error "bug in the test script: not 2 parameters to test-expect-success" + say >&3 "expecting success: $2" + if eval >&3 2>&4 "$2" |