From 764b42c46bf03385c2934709fa03c073246b2383 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 5 Dec 2018 13:59:01 +0100 Subject: pkg/csource: exclude linux/arm64 tests I think I misinterpreted the error that episodically happens on ci: collect2: error: ld terminated with signal 11 [Segmentation fault], core dumped compiler invocation: aarch64-linux-gnu-gcc [-Wall -Werror -O1 -g -o /tmp/syz-executor570589071 -pthread -DGOOS_linux=1 -DGOARCH_arm64=1 -x c - -static] as OOM, but they all involve aarch64-linux-gnu-gcc: https://travis-ci.org/google/syzkaller/jobs/461827347 https://travis-ci.org/google/syzkaller/jobs/460226110 https://travis-ci.org/google/syzkaller/jobs/463564291 So I guess the problem can be with the arm64 toolchain that just crashes randomly. --- pkg/csource/csource_test.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'pkg/csource/csource_test.go') diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index c360dac86..4fccebd92 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -17,13 +17,6 @@ import ( "github.com/google/syzkaller/sys/targets" ) -func init() { - if os.Getenv("TRAVIS") != "" { - // Otherwise tests OOM on travis. - runtime.GOMAXPROCS(1) - } -} - func TestGenerate(t *testing.T) { t.Parallel() checked := make(map[string]bool) @@ -45,6 +38,11 @@ func TestGenerate(t *testing.T) { // fatal error: asm/unistd.h: No such file or directory t.Skip("broken") } + if target.OS == "linux" && target.Arch == "arm64" { + // Episodically fails on travis with: + // collect2: error: ld terminated with signal 11 [Segmentation fault] + t.Skip("broken") + } if target.OS == "test" && target.PtrSize == 4 { // The same reason as linux/32. t.Skip("broken") -- cgit mrf-deployment