From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 13 Aug 2010 13:16:18 -0400 To: 9fans@9fans.net Message-ID: <6c97cc385db794bd736f6ea0cd505989@plug.quanstro.net> In-Reply-To: <669f246aba1d324e377a93d730962f41@swcp.com> References: <669f246aba1d324e377a93d730962f41@swcp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] read(2) problem on p9p? Topicbox-Message-UUID: 4807c5de-ead6-11e9-9d60-3106f5b1d025 > test(!strcmp(tst_str,buf)==ret,4, "check value\n"); you haven't explanined what the arguments to test do, but you appear to be mixing strcmp idioms. i think you wish either test(strcmp(test_str, buf) == 0, 4, "check value\n"); or test(!strcmp(test_str, buf), 4, "check value\n"); - erik