diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-24 16:03:53 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-24 16:03:53 +0900 |
| commit | d097eaa28f3328c038e1b7003899f26dc0f12a4d (patch) | |
| tree | 2d93421b7189f4bbefbfd88268faed5b07aeb4ad /test/sandbox/fs_test.go | |
| parent | ad3576c16467d8b36452307b005b6af0d0f0f9d2 (diff) | |
test/sandbox: unquote fail messages
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/fs_test.go')
| -rw-r--r-- | test/sandbox/fs_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sandbox/fs_test.go b/test/sandbox/fs_test.go index 2b122c55..cac5a3f5 100644 --- a/test/sandbox/fs_test.go +++ b/test/sandbox/fs_test.go @@ -31,16 +31,16 @@ func TestCompare(t *testing.T) { "[ OK ] s .fortify\x00[ OK ] d .\x00", nil}, {"bad length", fstest.MapFS{".fortify": {Mode: 0x800001ed}}, &sandbox.FS{Dir: make(map[string]*sandbox.FS)}, - "[FAIL] d \".\": \".fortify/\"\x00", sandbox.ErrFSBadLength}, + "[FAIL] d .: \".fortify/\"\x00", sandbox.ErrFSBadLength}, {"top level bad mode", fstest.MapFS{".fortify": {Mode: 0x800001ed}}, &sandbox.FS{Dir: map[string]*sandbox.FS{".fortify": {Mode: 0xdeadbeef}}}, - "[FAIL] m \".fortify\": 800001ed, want deadbeef\x00", sandbox.ErrFSBadMode}, + "[FAIL] m .fortify: 800001ed, want deadbeef\x00", sandbox.ErrFSBadMode}, {"invalid entry condition", fstest.MapFS{"test": {Data: []byte{'0'}, Mode: 0644}}, &sandbox.FS{Dir: map[string]*sandbox.FS{"test": {Dir: make(map[string]*sandbox.FS)}}}, - "[FAIL] d \".\": \"test\"\x00", sandbox.ErrFSInvalidEnt}, + "[FAIL] d .: \"test\"\x00", sandbox.ErrFSInvalidEnt}, {"nonexistent", fstest.MapFS{"test": {Data: []byte{'0'}, Mode: 0644}}, &sandbox.FS{Dir: map[string]*sandbox.FS{".test": {}}}, - "[FAIL] d \".\": \"test\"\x00", fs.ErrNotExist}, + "[FAIL] d .: \"test\"\x00", fs.ErrNotExist}, {"file", fstest.MapFS{"etc": {Mode: 0x800001c0}, "etc/passwd": {Data: []byte(fsPasswdSample), Mode: 0644}, "etc/group": {Data: []byte(fsGroupSample), Mode: 0644}, |
