1 fb1a36c0 2022-01-09 op include "lib.9ps"
3 a0ec53a2 2022-01-09 op testing "if version works" {
4 fb1a36c0 2022-01-09 op send(Tversion, notag, msize, np2000)
6 fb1a36c0 2022-01-09 op assert m.type == Rversion
9 a0ec53a2 2022-01-09 op testing "fails when sending a R-message" {
10 fb1a36c0 2022-01-09 op send(Rversion, notag, msize, np2000)
11 fb1a36c0 2022-01-09 op should-fail recv() : "the connection should have been closed"
14 a0ec53a2 2022-01-09 op testing "multiple attach" {
15 fb1a36c0 2022-01-09 op version(msize, np2000)
19 fb1a36c0 2022-01-09 op m.type == Rversion
20 fb1a36c0 2022-01-09 op m.tag == notag
21 fb1a36c0 2022-01-09 op m.msize <= msize
27 fb1a36c0 2022-01-09 op # attach the first fid
28 fb1a36c0 2022-01-09 op attach(fid1, nofid, "op", "/")
31 fb1a36c0 2022-01-09 op m.type == Rattach
32 fb1a36c0 2022-01-09 op m.qid.type == QTDIR
35 fb1a36c0 2022-01-09 op # attach the second fid
36 fb1a36c0 2022-01-09 op attach(fid2, nofid, "op", "/")
39 fb1a36c0 2022-01-09 op m.type == Rattach
40 fb1a36c0 2022-01-09 op m.qid.type == QTDIR
44 a0ec53a2 2022-01-09 op testing "don't close used qids" {
47 fb1a36c0 2022-01-09 op walk(0, 2, "dir")
51 fb1a36c0 2022-01-09 op expect(Rclunk)
53 fb1a36c0 2022-01-09 op walk(2, 3, "a-file")
57 fb1a36c0 2022-01-09 op expect(Rclunk)
59 fb1a36c0 2022-01-09 op open(3, OREAD)