Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A05 test failure: bad interpreter: x*xn
- X-seq: zsh-workers 43466
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: A05 test failure: bad interpreter: x*xn
- Date: Fri, 14 Sep 2018 09:10:03 +0100
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180914081006euoutp0158aed935f8d6f353ac9634790a7bcbc4~UNd9rC8Ji1059910599euoutp01c
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1536912606; bh=3mTuOaYsQfNSB3bEhyZvi5BC1oDgjvp7vYwFjpFxvLs=; h=Date:From:To:Subject:In-Reply-To:References:From; b=O8OvywEwvK3osZVxnyTER2+TGqDmeFQQ8cOXlfwJQy3pZ2I1ed/5D6z4+RIGmxSVg GUQUg2zjZHsccZHzIfU7cKmn5JMsoFcQm6x/gWtRz0Y307xgqrKndO+3o5p/sZ2zTO 76+c49fgmCWmG/dohYGJ5zxhq06Kmt9GAhPFp1ZU=
- In-reply-to: <20180914040412.GA50246@CptOrmolo.darkstar>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: SCSC
- References: <CGME20180914040455epcas3p388a45a226343370c8e41c7161fa841a9@epcas3p3.samsung.com> <20180914040412.GA50246@CptOrmolo.darkstar>
On Thu, 13 Sep 2018 23:04:13 -0500
Matthew Martin <phy1729@xxxxxxxxx> wrote:
> When running tests on OpenBSD A05 fails with the below message. It seems
> to be testing for an OS dependant error string and exit code.
Yes, that's not going to work. I missed that.
Let's just stick with non-zero status.
pws
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index 567bd25..5d3d460 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -52,12 +52,17 @@
0:path (4)
*>foo */command.tmp/tstcmd-arg
- path=($shpath $echopath ${ZTST_testdir}/command.tmp/)
- tstcmd-interp-too-long 2>&1; echo "status $?"
- path=($storepath)
-0:path (5)
-*>*tstcmd-interp-too-long: bad interpreter: x*xn: no such file or directory
->status 127
+ # Just check this exits with non-zero status,
+ # as output and status code can differ.
+ (
+ path=($shpath $echopath ${ZTST_testdir}/command.tmp/)
+ if tstcmd-interp-too-long >/dev/null 2>&1; then
+ exit 0
+ else
+ exit 1
+ fi
+ )
+1:path (5)
functst() { print $# arguments:; print -l $*; }
functst "Eines Morgens" "als Gregor Samsa"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author