1
0
mirror of https://github.com/golang/go synced 2024-11-27 02:01:23 -07:00

runtime: skip TestStdcallAndCDeclCallbacks when gcc is missing

Fixes #10167.

Change-Id: Ib6c6b2b5dde47744b69f65482a21964fa3c12090
Reviewed-on: https://go-review.googlesource.com/7600
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
This commit is contained in:
Shenghou Ma 2015-03-14 18:26:39 -04:00 committed by Minux Ma
parent 3b1d692093
commit d7e3d69e1c

View File

@ -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)