From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 5651 invoked from network); 9 Sep 2022 04:20:57 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 9 Sep 2022 04:20:57 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 9front; Fri Sep 9 00:19:24 -0400 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1662697176; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=y5ohZ+Wqmudyz1rGa6AHKJWj6cDQLU35Noo4I0gJOxE=; b=DUC+Q0Uw6vogVjrT5ivXAYjf79quNL0OML830FXANxMFkwVxyghyRwkNY8CZY7EbtYxcVj z1xS26Z3RUaTIObg5VHPc4oePlwEekk4G5WZmMCthxW3KPFOt4//5javdd0HHBMZ3u3im2 o5I1126dqn5X4vHyM5P2VhXTwmS1qhU= Received: from [192.168.168.200] (161-97-228-135.mynextlight.net [161.97.228.135]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 4602b0c1 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Thu, 8 Sep 2022 23:19:35 -0500 (CDT) Message-ID: <3c076be7-5fd8-f05e-9532-e6828090009a@posixcafe.org> Date: Thu, 8 Sep 2022 22:17:09 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: en-US To: 9front@9front.org References: <20220909000106.12391-1-mforney@mforney.org> From: Jacob Moody In-Reply-To: <20220909000106.12391-1-mforney@mforney.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: package-oriented WEB2.0 DOM app Subject: Re: [9front] [PATCH] 9pcon: add support for Rerror in assert mode Reply-To: 9front@9front.org Precedence: bulk On 9/8/22 18:01, Michael Forney wrote: > > 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; > +} > + > 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, Thanks! Committed.