aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/outcome/main_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-11-14 01:03:26 +0900
committerOphestra <cat@gensokyo.uk>2025-11-14 01:03:26 +0900
commit6d14bb814f276fd61ca3ff75cb279815cf1bb95d (patch)
tree7d26426940b6205a7b410055db485906a11d28de /internal/outcome/main_test.go
parentbe0e387ab07c7d9f1441365a05c4c0141779184a (diff)
container/fhs: add constant for /dev/shm/
This is mounted for the default read-only /dev/ when programs want to use shm_open(3). Defining it here is less error-prone and saves the extra append at runtime. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/main_test.go')
-rw-r--r--internal/outcome/main_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/outcome/main_test.go b/internal/outcome/main_test.go
index ecc4ccc4..de2113f2 100644
--- a/internal/outcome/main_test.go
+++ b/internal/outcome/main_test.go
@@ -141,7 +141,7 @@ func TestOutcomeMain(t *testing.T) {
Proc(fhs.AbsProc).
Tmpfs(hst.AbsPrivateTmp, 1<<12, 0755).
Bind(fhs.AbsDev, fhs.AbsDev, std.BindWritable|std.BindDevice).
- Tmpfs(fhs.AbsDev.Append("shm"), 0, 01777).
+ Tmpfs(fhs.AbsDevShm, 0, 01777).
// spRuntimeOp
Tmpfs(fhs.AbsRunUser, 1<<12, 0755).
@@ -243,7 +243,7 @@ func TestOutcomeMain(t *testing.T) {
Proc(m("/proc/")).
Tmpfs(hst.AbsPrivateTmp, 4096, 0755).
DevWritable(m("/dev/"), true).
- Tmpfs(m("/dev/shm"), 0, 01777).
+ Tmpfs(m("/dev/shm/"), 0, 01777).
Tmpfs(m("/run/user/"), 4096, 0755).
Bind(m("/tmp/hakurei.0/runtime/0"), m("/run/user/65534"), std.BindWritable).
Bind(m("/tmp/hakurei.0/tmpdir/0"), m("/tmp/"), std.BindWritable).
@@ -412,7 +412,7 @@ func TestOutcomeMain(t *testing.T) {
Proc(m("/proc/")).
Tmpfs(hst.AbsPrivateTmp, 4096, 0755).
DevWritable(m("/dev/"), true).
- Tmpfs(m("/dev/shm"), 0, 01777).
+ Tmpfs(m("/dev/shm/"), 0, 01777).
Tmpfs(m("/run/user/"), 4096, 0755).
Bind(m("/tmp/hakurei.0/runtime/9"), m("/run/user/65534"), std.BindWritable).
Bind(m("/tmp/hakurei.0/tmpdir/9"), m("/tmp/"), std.BindWritable).
@@ -558,7 +558,7 @@ func TestOutcomeMain(t *testing.T) {
Proc(m("/proc/")).
Tmpfs(hst.AbsPrivateTmp, 4096, 0755).
DevWritable(m("/dev/"), true).
- Tmpfs(m("/dev/shm"), 0, 01777).
+ Tmpfs(m("/dev/shm/"), 0, 01777).
Tmpfs(m("/run/user/"), 4096, 0755).
Bind(m("/tmp/hakurei.0/runtime/1"), m("/run/user/1971"), std.BindWritable).
Bind(m("/tmp/hakurei.0/tmpdir/1"), m("/tmp/"), std.BindWritable).