diff options
author | Michael Forney <mforney@mforney.org> | 2022-09-09 00:01:06 +0000 |
---|---|---|
committer | Jacob Moody <moody@posixcafe.org> | 2022-09-09 00:01:06 +0000 |
commit | 49998bafa9fc705d98084c06113ee2dbcb5d8ce2 (patch) | |
tree | a4ffbb0b29dba49632e510563efdcfd3ae26e585 /sys/src/cmd/aux/9pcon.c | |
parent | a3a0a3268c2c7173b01c61131a6b43f0454dda72 (diff) |
9pcon: add support for Rerror in assert mode
This is useful for checking error behavior of 9p servers.
Diffstat (limited to 'sys/src/cmd/aux/9pcon.c')
-rw-r--r-- | sys/src/cmd/aux/9pcon.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/src/cmd/aux/9pcon.c b/sys/src/cmd/aux/9pcon.c index b51a8ddac..1ac33f385 100644 --- a/sys/src/cmd/aux/9pcon.c +++ b/sys/src/cmd/aux/9pcon.c @@ -144,6 +144,13 @@ rauth(Fcall *f, int, char **argv) 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) { @@ -436,6 +443,8 @@ Cmd msg9p[] = { "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, |