diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-03 11:28:27 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-03 13:29:57 +0100 |
| commit | 219279048112b60772344969aaf61a6e67f08e08 (patch) | |
| tree | 342212bbe6ab982f9bd00feed624fc90fcecb240 /pkg/csource/build.go | |
| parent | c3ff1810cf719dfe9a2329121b1c52357fc62ff6 (diff) | |
pkg/csource: reduce short tests
pkg/csource test gets OOM-killed on travis:
https://travis-ci.org/google/syzkaller/jobs/461827347
https://travis-ci.org/google/syzkaller/jobs/460226110
Add several measures:
- set GOMAXPROCS=1 to restrict parallel processes
- remove -g from compiler invocation
- reduce set of tests run in short mode to compensate for GOMAXPROCS=1
- also reduce set of tests in full mode as they timeout now
Diffstat (limited to 'pkg/csource/build.go')
| -rw-r--r-- | pkg/csource/build.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/build.go b/pkg/csource/build.go index 391d437a1..bdafe9a63 100644 --- a/pkg/csource/build.go +++ b/pkg/csource/build.go @@ -39,7 +39,7 @@ func build(target *prog.Target, src []byte, file string) (string, error) { } flags := []string{ - "-Wall", "-Werror", "-O1", "-g", "-o", bin, "-pthread", + "-Wall", "-Werror", "-O1", "-o", bin, "-pthread", "-DGOOS_" + target.OS + "=1", "-DGOARCH_" + target.Arch + "=1", } |
