From a6600be34ad812ff13c89f45c3cadaac6d994e67 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 30 Mar 2026 18:15:56 +0900 Subject: 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 --- internal/rosa/report_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/rosa/report_test.go') diff --git a/internal/rosa/report_test.go b/internal/rosa/report_test.go index ca29cf36..f394e915 100644 --- a/internal/rosa/report_test.go +++ b/internal/rosa/report_test.go @@ -3,7 +3,7 @@ package rosa_test import ( "errors" "os" - "path" + "path/filepath" "syscall" "testing" "unique" @@ -13,7 +13,7 @@ import ( ) func TestReportZeroLength(t *testing.T) { - report := path.Join(t.TempDir(), "report") + report := filepath.Join(t.TempDir(), "report") if err := os.WriteFile(report, nil, 0400); err != nil { t.Fatal(err) } @@ -24,7 +24,7 @@ func TestReportZeroLength(t *testing.T) { } func TestReportSIGSEGV(t *testing.T) { - report := path.Join(t.TempDir(), "report") + report := filepath.Join(t.TempDir(), "report") if err := os.WriteFile(report, make([]byte, 64), 0400); err != nil { t.Fatal(err) } -- cgit v1.3.1