aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/osutil/fileutil_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/osutil/fileutil_test.go')
-rw-r--r--pkg/osutil/fileutil_test.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/pkg/osutil/fileutil_test.go b/pkg/osutil/fileutil_test.go
index 62e07bc8f..20d02ea22 100644
--- a/pkg/osutil/fileutil_test.go
+++ b/pkg/osutil/fileutil_test.go
@@ -5,8 +5,6 @@ package osutil
import (
"fmt"
- "io/ioutil"
- "os"
"path/filepath"
"strconv"
"sync"
@@ -16,11 +14,7 @@ import (
func TestProcessTempDir(t *testing.T) {
for try := 0; try < 10; try++ {
func() {
- tmp, err := ioutil.TempDir("", "syz")
- if err != nil {
- t.Fatalf("failed to create a temp dir: %v", err)
- }
- defer os.RemoveAll(tmp)
+ tmp := t.TempDir()
const P = 16
// Pre-create half of the instances with stale pid.
var dirs []string