zsh-workers
 help / color / mirror / code / Atom feed
* A05 test failure: bad interpreter: x*xn
@ 2018-09-14  4:04 ` Matthew Martin
  2018-09-14  8:10   ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Martin @ 2018-09-14  4:04 UTC (permalink / raw)
  To: zsh-workers

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.

- Matthew Martin

./A05execution.ztst: starting.
Pattern match failed, line 1:
-<*tstcmd-interp-too-long: bad interpreter: x*xn: no such file or directory
 <status 127
+>(eval):2: /home/phy1729/ports/pobj/zsh-5.6.1/zsh-5.6.1/Test/command.tmp//tstcmd-interp-too-long: bad interpreter: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxn: exec format error
 >status 126
Test ./A05execution.ztst failed: output differs from expected as shown above for:
  path=($shpath $echopath ${ZTST_testdir}/command.tmp/)
  tstcmd-interp-too-long 2>&1; echo "status $?"
  path=($storepath)
Was testing: path (5)
./A05execution.ztst: test failed.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: A05 test failure: bad interpreter: x*xn
  2018-09-14  4:04 ` A05 test failure: bad interpreter: x*xn Matthew Martin
@ 2018-09-14  8:10   ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2018-09-14  8:10 UTC (permalink / raw)
  To: zsh-workers

On Thu, 13 Sep 2018 23:04:13 -0500
Matthew Martin <phy1729@gmail.com> 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"

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-14  8:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20180914040455epcas3p388a45a226343370c8e41c7161fa841a9@epcas3p3.samsung.com>
2018-09-14  4:04 ` A05 test failure: bad interpreter: x*xn Matthew Martin
2018-09-14  8:10   ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).