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