aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-03-24 16:36:53 +0900
committerOphestra <cat@gensokyo.uk>2025-03-24 16:36:53 +0900
commit3dd4ff29c8a297ba5a28ed1aa1d6c488031ee3c8 (patch)
treeac62b58ddf71718b72e371f5082ef3291368f472 /test
parent61d86c5e10e72a806d54151f602deee6247ef6cc (diff)
test/sandbox: check mount table length
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test')
-rw-r--r--test/sandbox/assert.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go
index f5d9e391..43cdd9d4 100644
--- a/test/sandbox/assert.go
+++ b/test/sandbox/assert.go
@@ -70,6 +70,10 @@ func (t *T) MustCheck(want *TestCase) {
fatalf("%v", err)
}
+ if i != len(want.Mount) {
+ fatalf("got %d entries, want %d", i, len(want.Mount))
+ }
+
if fail {
fatalf("[FAIL] some mount points did not match")
}