ref: 49998bafa9fc705d98084c06113ee2dbcb5d8ce2
parent: a3a0a3268c2c7173b01c61131a6b43f0454dda72
author: Michael Forney <[email protected]>
date: Thu Sep 8 20:01:06 EDT 2022
9pcon: add support for Rerror in assert mode This is useful for checking error behavior of 9p servers.
--- a/sys/src/cmd/aux/9pcon.c
+++ b/sys/src/cmd/aux/9pcon.c
@@ -144,6 +144,13 @@
return strtoqid(argv[0], &f->aqid);
}
+char *
+rerror(Fcall *f, int, char **argv)
+{
+ f->ename = argv[0];
+ return nil;
+}
+
char*
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,