aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/csource_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-12-05 13:59:01 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-12-05 13:59:01 +0100
commit764b42c46bf03385c2934709fa03c073246b2383 (patch)
tree64fef1b778bca823874dfc1eaaf2e4a2968bb438 /pkg/csource/csource_test.go
parentc64cb0567ef641dffb1ab64f47e2c968ff2963f0 (diff)
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.
Diffstat (limited to 'pkg/csource/csource_test.go')
-rw-r--r--pkg/csource/csource_test.go12
1 files changed, 5 insertions, 7 deletions
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")