bind: skip benchmarks in short mode

The bind benchmarks are implemented as Go tests, but take quite a
while to run. Skip them in short mode.

Change-Id: I49ede84863b047aa8307bc0ef752fc7aa21e2d65
Reviewed-on: https://go-review.googlesource.com/31637
Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
Elias Naur
2016-10-21 19:42:06 +00:00
parent e107ad8ed2
commit 23d9c7b685
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -52,6 +52,9 @@ func TestJavaSeqTest(t *testing.T) {
//
// while running the benchmark to see the results.
func TestJavaSeqBench(t *testing.T) {
if testing.Short() {
t.Skip("skipping benchmark in short mode.")
}
runTest(t, []string{"golang.org/x/mobile/bind/benchmark"}, "", "SeqBench")
}