Skip to content

Commit

Permalink
cgotest: use unix.ByteSliceToString to extract uname release on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
tklauser committed Apr 25, 2023
1 parent 91862f1 commit 156b803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgotest/sysconf_cgotest_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ".")
Expand Down

0 comments on commit 156b803

Please # to comment.