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.go | |
| parent | ad3576c16467d8b36452307b005b6af0d0f0f9d2 (diff) | |
test/sandbox: unquote fail messages
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sandbox/fs.go')
| -rw-r--r-- | test/sandbox/fs.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sandbox/fs.go b/test/sandbox/fs.go index 68dcecfb..2aa3aa5d 100644 --- a/test/sandbox/fs.go +++ b/test/sandbox/fs.go @@ -30,7 +30,7 @@ func printDir(prefix string, dir []fs.DirEntry) { } names[i] = fmt.Sprintf("%q", name) } - printf("[FAIL] d %q: %s", prefix, strings.Join(names, " ")) + printf("[FAIL] d %s: %s", prefix, strings.Join(names, " ")) } func (s *FS) Compare(prefix string, e fs.FS) error { @@ -71,7 +71,7 @@ func (s *FS) Compare(prefix string, e fs.FS) error { if fi, err := got.Info(); err != nil { return err } else if fi.Mode() != want.Mode { - printf("[FAIL] m %q: %x, want %x", + printf("[FAIL] m %s: %x, want %x", name, uint32(fi.Mode()), uint32(want.Mode)) return ErrFSBadMode } |
