From 0e6c1a50260de141c50bb50fd3f2b2bcf9a3fe64 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 7 Oct 2025 20:06:26 +0900 Subject: container/check: move absolute pathname This allows use of absolute pathname values without importing container. Signed-off-by: Ophestra --- container/errors_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'container/errors_test.go') diff --git a/container/errors_test.go b/container/errors_test.go index fd774a42..c2d3fa7a 100644 --- a/container/errors_test.go +++ b/container/errors_test.go @@ -8,6 +8,7 @@ import ( "syscall" "testing" + "hakurei.app/container/check" "hakurei.app/container/stub" "hakurei.app/container/vfs" ) @@ -34,7 +35,7 @@ func TestMessageFromError(t *testing.T) { Err: stub.UniqueError(0xdeadbeef), }, "cannot mount /sysroot: unique error 3735928559 injected by the test suite", true}, - {"absolute", &AbsoluteError{"etc/mtab"}, + {"absolute", &check.AbsoluteError{Pathname: "etc/mtab"}, `path "etc/mtab" is not absolute`, true}, {"repeat", OpRepeatError("autoetc"), -- cgit v1.3.1