3 # TODO: add a test that tries to do a walk after opening a fid for i/o.
5 testing "walk to a directory" dir "./root" {
7 walk(0, 1, "dir", "subdir")
13 m.wqid.0.type == QTDIR
14 m.wqid.1.type == QTDIR
18 testing "walk to a file" dir "./root" {
20 walk(0, 1, "dir", "subdir", "file")
26 m.wqid.0.type == QTDIR
27 m.wqid.1.type == QTDIR
28 m.wqid.2.type == QTFILE
32 testing "walk with invalid fid" dir "./root" {
38 testing "walk with empty string" dir "./root" {
44 testing "walk to a non-existant file" dir "./root" {
46 walk(0, 1, "non-exists")
50 testing "walk with an invalid component" dir "./root" {
52 walk(0, 1, "/non-exists")