Blob
1 include "lib.9ps"3 testing "walk with invalid fid" dir "./root" {4 mount(0, "/")5 walk(1, 2)6 should-fail()7 }9 testing "walk with invalid fid (multiple times)" dir "./root" {10 mount(0, "/")12 repeat 10 {13 walk(1, 2)14 should-fail()15 }16 }18 testing "walk to a directory" dir "./root" {19 mount(0, "/")20 walk(0, 1, "dir", "subdir")22 m = recv()23 assert(24 m.type == Rwalk,25 m.nwqid == 2,26 m.wqid.0.type == QTDIR,27 m.wqid.1.type == QTDIR,28 )29 }