aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sandbox/assert.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/sandbox/assert.go')
-rw-r--r--test/sandbox/assert.go7
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