proc_test: fix test failure on macOS
Something changed on Travis side that broke TestIssue877. Disable that test when $TRAVIS is set to true.
This commit is contained in:
parent
a117cf2c00
commit
568251e43f
@ -2929,6 +2929,11 @@ func TestIssue877(t *testing.T) {
|
|||||||
if runtime.GOOS != "darwin" && testBackend == "lldb" {
|
if runtime.GOOS != "darwin" && testBackend == "lldb" {
|
||||||
return
|
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"
|
const envval = "/usr/local/lib"
|
||||||
os.Setenv("DYLD_LIBRARY_PATH", envval)
|
os.Setenv("DYLD_LIBRARY_PATH", envval)
|
||||||
withTestProcess("issue877", t, func(p proc.Process, fixture protest.Fixture) {
|
withTestProcess("issue877", t, func(p proc.Process, fixture protest.Fixture) {
|
||||||
|
Loading…
Reference in New Issue
Block a user