Commit 6406acf3 authored by Russ Cox's avatar Russ Cox

[dev.cc] cmd/asm/internal/asm: fix test on windows

Change-Id: Ia6cf3204d71740bc2b6e26c53ac5206e8a33a180
Reviewed-on: https://go-review.googlesource.com/5540Reviewed-by: 's avatarRuss Cox <rsc@golang.org>
parent c80ff3cb
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment