9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Michael Forney <mforney@mforney.org>
To: 9front@9front.org
Subject: [9front] [PATCH] 9pcon: add support for Rerror in assert mode
Date: Thu,  8 Sep 2022 17:01:06 -0700	[thread overview]
Message-ID: <20220909000106.12391-1-mforney@mforney.org> (raw)

This is useful for checking error behavior of 9p servers.
diff ffb48be969338833a69e576e7d62353bbd831226 4ebd0d144227692b8dbd4fe4490040f9c2904f7a
--- a/sys/src/cmd/aux/9pcon.c	Thu Sep  8 13:20:11 2022
+++ b/sys/src/cmd/aux/9pcon.c	Thu Sep  8 16:57:45 2022
@@ -144,6 +144,13 @@
 	return strtoqid(argv[0], &f->aqid);
+char *
+rerror(Fcall *f, int, char **argv)
+	f->ename = argv[0];
+	return nil;
 tflush(Fcall *f, int, char **argv)
@@ -435,6 +442,8 @@
 	"Tauth", Tauth, 3, "afid uname aname", tauth,
 	"Rauth", Rauth, 1, "aqid", rauth,
+	"Rerror", Rerror, 1, "ename", rerror,
 	"Tflush", Tflush, 1, "oldtag", tflush,
 	"Rflush", Rflush, 0, "", nop,

             reply	other threads:[~2022-09-09  0:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-09  0:01 Michael Forney [this message]
2022-09-09  4:17 ` Jacob Moody

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220909000106.12391-1-mforney@mforney.org \
    --to=mforney@mforney.org \
    --cc=9front@9front.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).