aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2021-08-12 17:17:58 +0200
committerOmar Polo <op@omarpolo.com>2021-08-12 17:17:58 +0200
commited60564dfcdf08fe5c1f3394458e0566a14ffaf9 (patch)
tree92a3b928a16d6811af97da14969704cfbb2a90d3
parent8a2def82135dc493741663856310c5c662106aff (diff)
downloadkamid-ed60564dfcdf08fe5c1f3394458e0566a14ffaf9.tar.gz
kamid-ed60564dfcdf08fe5c1f3394458e0566a14ffaf9.tar.bz2
test walking to a file
-rw-r--r--regress/t.9ps15
1 files changed, 15 insertions, 0 deletions
diff --git a/regress/t.9ps b/regress/t.9ps
index f974c95..7a6722e 100644
--- a/regress/t.9ps
+++ b/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)