From 568251e43f47684a52430e3e72748efd39486955 Mon Sep 17 00:00:00 2001 From: aarzilli Date: Wed, 1 Aug 2018 17:39:13 +0200 Subject: [PATCH] proc_test: fix test failure on macOS Something changed on Travis side that broke TestIssue877. Disable that test when $TRAVIS is set to true. --- pkg/proc/proc_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkg/proc/proc_test.go b/pkg/proc/proc_test.go index cce4cd5b..bde19ffb 100644 --- a/pkg/proc/proc_test.go +++ b/pkg/proc/proc_test.go @@ -2929,6 +2929,11 @@ func TestIssue877(t *testing.T) { if runtime.GOOS != "darwin" && testBackend == "lldb" { return } + if os.Getenv("TRAVIS") == "true" && runtime.GOOS == "darwin" { + // Something changed on Travis side that makes the Go compiler fail if + // DYLD_LIBRARY_PATH is set. + t.Skip("broken") + } const envval = "/usr/local/lib" os.Setenv("DYLD_LIBRARY_PATH", envval) withTestProcess("issue877", t, func(p proc.Process, fixture protest.Fixture) {