We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec367e5 commit d67e739Copy full SHA for d67e739
src/os/exec/lp_windows_test.go
@@ -306,12 +306,7 @@ var lookPathTests = []lookPathTest{
306
}
307
308
func TestLookPath(t *testing.T) {
309
- tmp, err := os.MkdirTemp("", "TestLookPath")
310
- if err != nil {
311
- t.Fatal("TempDir failed: ", err)
312
- }
313
- defer os.RemoveAll(tmp)
314
-
+ tmp := t.TempDir()
315
printpathExe := buildPrintPathExe(t, tmp)
316
317
// Run all tests.
@@ -508,12 +503,7 @@ var commandTests = []commandTest{
508
503
509
504
510
505
func TestCommand(t *testing.T) {
511
- tmp, err := os.MkdirTemp("", "TestCommand")
512
513
514
515
516
506
517
507
518
519
0 commit comments