3 testing "if version works" {
4 send(Tversion, notag, msize, np2000)
6 assert m.type == Rversion
9 testing "that fails with an msize too small" {
10 send(Tversion, notag, 64:u32, np2000)
12 assert m.type == Rversion
14 # we can't check if the replied version is "unknown" because
15 # of a limitation of 9pscript... instead, we'll try to attach
16 # and expect a failure.
17 attach(0, nofid, "op", "/")
18 should-fail recv() : "the connection should have been closed"
21 testing "fails when sending a R-message" {
22 send(Rversion, notag, msize, np2000)
23 should-fail recv() : "the connection should have been closed"
26 testing "multiple attach" {
27 version(msize, np2000)
39 # attach the first fid
40 attach(fid1, nofid, "op", "/")
47 # attach the second fid
48 attach(fid2, nofid, "op", "/")
56 testing "don't close used qids" {