commit ed60564dfcdf08fe5c1f3394458e0566a14ffaf9 from: Omar Polo date: Thu Aug 12 15:17:58 2021 UTC test walking to a file commit - 8a2def82135dc493741663856310c5c662106aff commit + ed60564dfcdf08fe5c1f3394458e0566a14ffaf9 blob - f974c958f45c128e6c2f831a8ef7ad1c3b05a920 blob + 7a6722ef136ce35674c59ee8c3a191f83551dedb --- regress/t.9ps +++ regress/t.9ps @@ -24,6 +24,21 @@ testing "walk to a directory" dir "./root" { ) } +testing "walk to a file" dir "./root" { + mount(0, "/") + walk(0, 1, "dir", "subdir", "file") + + m = recv() + print("nwqid =", m.nwqid) + assert ( + m.type == Rwalk + m.nwqid == 3 + m.wqid.0.type == QTDIR + m.wqid.1.type == QTDIR + m.wqid.2.type == QTFILE + ) +} + testing "walk with invalid fid" dir "./root" { mount(0, "/") walk(1, 2)