From 219279048112b60772344969aaf61a6e67f08e08 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 3 Dec 2018 11:28:27 +0100 Subject: 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 --- pkg/csource/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/csource/build.go') 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", } -- cgit mrf-deployment