From: Shenghou Ma Date: Sat, 14 Mar 2015 22:26:39 +0000 (-0400) Subject: runtime: skip TestStdcallAndCDeclCallbacks when gcc is missing X-Git-Tag: go1.5beta1~1590 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d7e3d69e1cf4e50429956c89fba71399eea9d416;p=gostls13.git runtime: skip TestStdcallAndCDeclCallbacks when gcc is missing Fixes #10167. Change-Id: Ib6c6b2b5dde47744b69f65482a21964fa3c12090 Reviewed-on: https://go-review.googlesource.com/7600 Reviewed-by: Alex Brainman --- diff --git a/src/runtime/syscall_windows_test.go b/src/runtime/syscall_windows_test.go index c40641a0dd..720f70bdfc 100644 --- a/src/runtime/syscall_windows_test.go +++ b/src/runtime/syscall_windows_test.go @@ -436,6 +436,9 @@ var cbTests = []cbTest{ } func TestStdcallAndCDeclCallbacks(t *testing.T) { + if _, err := exec.LookPath("gcc"); err != nil { + t.Skip("skipping test: gcc is missing") + } tmp, err := ioutil.TempDir("", "TestCDeclCallback") if err != nil { t.Fatal("TempDir failed: ", err)