aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/initdev_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-29 01:46:54 +0900
committerOphestra <cat@gensokyo.uk>2025-08-29 01:46:54 +0900
commiteb3385d490523262e26b6cb691a5e18a07a8b26d (patch)
treeed8e9e95f81b4962ebf23d206e963b016975f6c9 /container/initdev_test.go
parentb8669338da36c9a4fabec6c49cad20a5f8180cf2 (diff)
container/initsymlink: unwrap mount errors
The mount function now wraps its own errors in a much more descriptive type with proper message formatting. Wrapping them no longer makes any sense. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/initdev_test.go')
-rw-r--r--container/initdev_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/container/initdev_test.go b/container/initdev_test.go
index de756d0b..b7aef450 100644
--- a/container/initdev_test.go
+++ b/container/initdev_test.go
@@ -390,7 +390,7 @@ func TestMountDevOp(t *testing.T) {
{"mkdir", expectArgs{"/sysroot/dev/shm", os.FileMode(0750)}, nil, nil},
{"mkdir", expectArgs{"/sysroot/dev/pts", os.FileMode(0750)}, nil, nil},
{"mount", expectArgs{"devpts", "/sysroot/dev/pts", "devpts", uintptr(0xa), "newinstance,ptmxmode=0666,mode=620"}, nil, errUnique},
- }, wrapErrSuffix(errUnique, `cannot mount devpts on "/sysroot/dev/pts":`)},
+ }, errUnique},
{"ensureFile stdout", &Params{ParentPerm: 0750, RetainSession: true}, &MountDevOp{
Target: MustAbs("/dev/"),
@@ -550,7 +550,7 @@ func TestMountDevOp(t *testing.T) {
{"bindMount", expectArgs{"/host/dev/pts/2", "/sysroot/dev/console", uintptr(0), false}, nil, nil},
{"mkdir", expectArgs{"/sysroot/dev/mqueue", os.FileMode(0750)}, nil, nil},
{"mount", expectArgs{"mqueue", "/sysroot/dev/mqueue", "mqueue", uintptr(0xe), ""}, nil, errUnique},
- }, wrapErrSuffix(errUnique, "cannot mount mqueue:")},
+ }, errUnique},
{"success no session", &Params{ParentPerm: 0755}, &MountDevOp{
Target: MustAbs("/dev/"),