diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-14 01:35:17 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-14 01:49:42 +0900 |
| commit | ca247b80378b7248ed4d1eda8a97e2a1d659ec7b (patch) | |
| tree | 837a6f37f6a1e7d3aa36c10e96786e9f1854b5c2 /test/sandbox/assert.go | |
| parent | 3f25c3f0af5631dcf46584ec122f7466fb8cfe37 (diff) | |
internal/app: mount /dev/shm early
This avoids covering /dev/shm mounts from hst.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/assert.go')
| -rw-r--r-- | test/sandbox/assert.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sandbox/assert.go b/test/sandbox/assert.go index 2c2c9f20..6dbb53b7 100644 --- a/test/sandbox/assert.go +++ b/test/sandbox/assert.go @@ -53,6 +53,13 @@ func (t *T) MustCheckFile(wantFilePath string) { } func (t *T) MustCheck(want *TestCase) { + // check /dev/shm writable + if err := os.WriteFile("/dev/shm/.hakurei-check", make([]byte, 1<<8), 0600); err != nil { + fatalf("[FAIL] %s", err) + } else { + printf("[ OK ] /dev/shm is writable") + } + if want.Env != nil { var ( fail bool |
