commit | d6668316e43571d7dde95be6fd077f96de002f8b | [log] [tgz] |
---|---|---|
author | Nigel Tao <nigeltao@golang.org> | Thu May 19 13:34:20 2016 +1000 |
committer | Nigel Tao <nigeltao@golang.org> | Thu May 19 13:34:20 2016 +1000 |
tree | 60f19e66a18d6d6e0cc6fc8f778f7a23ec8820f0 | |
parent | d7b1e156f50d3c4664f683603af70e3e47fa0aa2 [diff] |
Fix BenchmarkExtendMatch to honor the testdata flag.
diff --git a/snappy_test.go b/snappy_test.go index f4813f4..ce3f08e 100644 --- a/snappy_test.go +++ b/snappy_test.go
@@ -1306,7 +1306,8 @@ func Benchmark_ZFlat11(b *testing.B) { benchFile(b, 11, false) } func BenchmarkExtendMatch(b *testing.B) { - src, err := ioutil.ReadFile(goldenText) + tDir := filepath.FromSlash(*testdataDir) + src, err := ioutil.ReadFile(filepath.Join(tDir, goldenText)) if err != nil { b.Fatalf("ReadFile: %v", err) }