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 /internal/acl | |
| 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 'internal/acl')
| -rw-r--r-- | internal/acl/acl_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/acl/acl_test.go b/internal/acl/acl_test.go index 19ce45ac..5f5447ba 100644 --- a/internal/acl/acl_test.go +++ b/internal/acl/acl_test.go @@ -8,7 +8,7 @@ import ( "io" "os" "os/exec" - "path" + "path/filepath" "reflect" "strconv" "testing" @@ -28,7 +28,7 @@ func TestUpdate(t *testing.T) { t.Skip("acl test skipped") } - testFilePath := path.Join(t.TempDir(), testFileName) + testFilePath := filepath.Join(t.TempDir(), testFileName) if f, err := os.Create(testFilePath); err != nil { t.Fatalf("Create: error = %v", err) |
