aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-02-21 12:53:30 -0500
committerRuss Cox <rsc@golang.org>2015-02-21 17:54:38 +0000
commit6406acf33835141fe527a53faf5e461179d9298a (patch)
treeda5a2fdcc72c0d49980354ebee4ceb677616a97a
parentc80ff3cb8777301bf141437bc0a5f9d6c9df3812 (diff)
downloadgo-6406acf33835141fe527a53faf5e461179d9298a.tar.gz
go-6406acf33835141fe527a53faf5e461179d9298a.zip
[dev.cc] cmd/asm/internal/asm: fix test on windows
Change-Id: Ia6cf3204d71740bc2b6e26c53ac5206e8a33a180 Reviewed-on: https://go-review.googlesource.com/5540 Reviewed-by: Russ Cox <rsc@golang.org>
-rw-r--r--src/cmd/asm/internal/asm/endtoend_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cmd/asm/internal/asm/endtoend_test.go b/src/cmd/asm/internal/asm/endtoend_test.go
index 270f80d0f6..5ee6e80d2b 100644
--- a/src/cmd/asm/internal/asm/endtoend_test.go
+++ b/src/cmd/asm/internal/asm/endtoend_test.go
@@ -42,6 +42,8 @@ func testEndToEnd(t *testing.T, goarch string) {
}
result := string(testOut.Bytes())
expect, err := ioutil.ReadFile(output)
+ // For Windows.
+ result = strings.Replace(result, `testdata\`, `testdata/`, -1)
if err != nil {
t.Fatal(err)
}