diff options
author | Colin Cross <ccross@android.com> | 2020-10-07 20:40:38 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-10-07 20:40:38 +0000 |
commit | 45fd6ace7e6dd7c588c6cf44aa5280de7621d39b (patch) | |
tree | 857807c39d6b518409837aec3dac65d28865d1a2 /rust/compiler_test.go | |
parent | 43159bd1b7c99790d84fdedda09db3701d466f30 (diff) | |
parent | 323dc60712491c71ccdc5363c42df61f0a192487 (diff) |
Merge "Make lots of tests run in parallel"
Diffstat (limited to 'rust/compiler_test.go')
-rw-r--r-- | rust/compiler_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/compiler_test.go b/rust/compiler_test.go index a25523c05..70f0dffad 100644 --- a/rust/compiler_test.go +++ b/rust/compiler_test.go @@ -23,6 +23,7 @@ import ( // Test that feature flags are being correctly generated. func TestFeaturesToFlags(t *testing.T) { + t.Parallel() ctx := testRust(t, ` rust_library_host_dylib { name: "libfoo", @@ -44,6 +45,7 @@ func TestFeaturesToFlags(t *testing.T) { // Test that we reject multiple source files. func TestEnforceSingleSourceFile(t *testing.T) { + t.Parallel() singleSrcError := "srcs can only contain one path for a rust file and source providers prefixed by \":\"" @@ -78,6 +80,7 @@ func TestEnforceSingleSourceFile(t *testing.T) { } func TestInstallDir(t *testing.T) { + t.Parallel() ctx := testRust(t, ` rust_library_dylib { name: "libfoo", @@ -108,6 +111,7 @@ func TestInstallDir(t *testing.T) { } func TestLints(t *testing.T) { + t.Parallel() bp := ` // foo uses the default value of lints @@ -180,6 +184,7 @@ func TestLints(t *testing.T) { // Test that devices are linking the stdlib dynamically func TestStdDeviceLinkage(t *testing.T) { + t.Parallel() ctx := testRust(t, ` rust_binary { name: "fizz", |