aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/objdump/objdump_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/objdump/objdump_test.go')
-rw-r--r--src/cmd/objdump/objdump_test.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/objdump/objdump_test.go b/src/cmd/objdump/objdump_test.go
index 8d73c016c6..b24371ddea 100644
--- a/src/cmd/objdump/objdump_test.go
+++ b/src/cmd/objdump/objdump_test.go
@@ -5,6 +5,7 @@
package main
import (
+ "crypto/md5"
"flag"
"fmt"
"go/build"
@@ -101,7 +102,8 @@ func testDisasm(t *testing.T, printCode bool, flags ...string) {
goarch = f[1]
}
- hello := filepath.Join(tmp, "hello.exe")
+ hash := md5.Sum([]byte(fmt.Sprintf("%v-%v", flags, printCode)))
+ hello := filepath.Join(tmp, fmt.Sprintf("hello-%x.exe", hash))
args := []string{"build", "-o", hello}
args = append(args, flags...)
args = append(args, "testdata/fmthello.go")