From 156b803dcec077338c1befb8d0050d14349e1e9f Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 25 Apr 2023 12:47:24 +0200 Subject: [PATCH] cgotest: use unix.ByteSliceToString to extract uname release on darwin --- cgotest/sysconf_cgotest_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgotest/sysconf_cgotest_darwin.go b/cgotest/sysconf_cgotest_darwin.go index 5ddcfa7..4b91625 100644 --- a/cgotest/sysconf_cgotest_darwin.go +++ b/cgotest/sysconf_cgotest_darwin.go @@ -163,7 +163,7 @@ func testMacOSVersionDeps(t *testing.T) { if err != nil { t.Fatalf("Uname: %v", err) } - rel := string(u.Release[:]) + rel := unix.ByteSliceToString(u.Release[:]) t.Logf("macOS release: %s", rel) ver := strings.Split(rel, ".")