diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-30 18:15:56 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-30 18:24:53 +0900 |
| commit | a6600be34ad812ff13c89f45c3cadaac6d994e67 (patch) | |
| tree | 48c8cd6daab8084eb9391c7ee16f2b38f1cf280f /test/internal/sandbox/mount_test.go | |
| parent | b5592633f5b980970808fc5be43b0fb4f4d4e784 (diff) | |
all: use filepath
This makes package check portable, and removes nonportable behaviour from package pkg, pipewire, and system. All other packages remain nonportable due to their nature. No latency increase was observed due to this change on amd64 and arm64 linux.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/internal/sandbox/mount_test.go')
| -rw-r--r-- | test/internal/sandbox/mount_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/internal/sandbox/mount_test.go b/test/internal/sandbox/mount_test.go index 65bcec43..a565b0a0 100644 --- a/test/internal/sandbox/mount_test.go +++ b/test/internal/sandbox/mount_test.go @@ -4,7 +4,7 @@ package sandbox_test import ( "os" - "path" + "path/filepath" "testing" "hakurei.app/test/internal/sandbox" @@ -87,7 +87,7 @@ func TestMountinfo(t *testing.T) { } for _, tc := range testCases { - name := path.Join(t.TempDir(), "sample") + name := filepath.Join(t.TempDir(), "sample") if err := os.WriteFile(name, []byte(tc.sample), 0400); err != nil { t.Fatalf("cannot write sample: %v", err) } |
