aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/testsanitizers/cshared_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/testsanitizers/cshared_test.go')
-rw-r--r--misc/cgo/testsanitizers/cshared_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/cgo/testsanitizers/cshared_test.go b/misc/cgo/testsanitizers/cshared_test.go
index b98360c4ae..8fd03715a1 100644
--- a/misc/cgo/testsanitizers/cshared_test.go
+++ b/misc/cgo/testsanitizers/cshared_test.go
@@ -6,7 +6,7 @@ package sanitizers_test
import (
"fmt"
- "io/ioutil"
+ "os"
"strings"
"testing"
)
@@ -64,7 +64,7 @@ func TestShared(t *testing.T) {
mustRun(t, config.goCmd("build", "-buildmode=c-shared", "-o", lib, srcPath(tc.src)))
cSrc := dir.Join("main.c")
- if err := ioutil.WriteFile(cSrc, cMain, 0600); err != nil {
+ if err := os.WriteFile(cSrc, cMain, 0600); err != nil {
t.Fatalf("failed to write C source file: %v", err)
}