diff options
author | 2020-09-18 14:25:31 -0700 | |
---|---|---|
committer | 2020-10-06 15:12:22 -0700 | |
commit | 323dc60712491c71ccdc5363c42df61f0a192487 (patch) | |
tree | 5ba86007fb0f7d2536671cbc64e91b1eac304270 /symbol_inject | |
parent | 56a8321c210bf73c7b9f177849ff4a6b6192d237 (diff) |
Make lots of tests run in parallel
Putting t.Parallel() in each test makes them run in parallel.
Additional t.Parallel() could be added to each subtest, although
that requires making a local copy of the loop variable for
table driven tests.
Test: m checkbuild
Change-Id: I5d9869ead441093f4d7c5757f2447385333a95a4
Diffstat (limited to 'symbol_inject')
-rw-r--r-- | symbol_inject/elf_test.go | 1 | ||||
-rw-r--r-- | symbol_inject/macho_test.go | 1 | ||||
-rw-r--r-- | symbol_inject/pe_test.go | 1 | ||||
-rw-r--r-- | symbol_inject/symbol_inject_test.go | 1 |
4 files changed, 4 insertions, 0 deletions
diff --git a/symbol_inject/elf_test.go b/symbol_inject/elf_test.go index aceee4418..316c69a51 100644 --- a/symbol_inject/elf_test.go +++ b/symbol_inject/elf_test.go @@ -20,6 +20,7 @@ import ( ) func TestElfSymbolTable(t *testing.T) { + t.Parallel() testCases := []struct { file *mockElfFile symbol string diff --git a/symbol_inject/macho_test.go b/symbol_inject/macho_test.go index 50df1315d..d5b962d06 100644 --- a/symbol_inject/macho_test.go +++ b/symbol_inject/macho_test.go @@ -21,6 +21,7 @@ import ( ) func TestMachoSymbolTable(t *testing.T) { + t.Parallel() testCases := []struct { file *macho.File symbol string diff --git a/symbol_inject/pe_test.go b/symbol_inject/pe_test.go index df7bac3cb..16b20093a 100644 --- a/symbol_inject/pe_test.go +++ b/symbol_inject/pe_test.go @@ -21,6 +21,7 @@ import ( ) func TestPESymbolTable(t *testing.T) { + t.Parallel() testCases := []struct { file *pe.File symbol string diff --git a/symbol_inject/symbol_inject_test.go b/symbol_inject/symbol_inject_test.go index 6607e6599..ab874b92a 100644 --- a/symbol_inject/symbol_inject_test.go +++ b/symbol_inject/symbol_inject_test.go @@ -21,6 +21,7 @@ import ( ) func TestCopyAndInject(t *testing.T) { + t.Parallel() s := "abcdefghijklmnopqrstuvwxyz" testCases := []struct { offset uint64 |