diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index 23d8c3939cf..6049057baec 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -445,7 +445,7 @@ func (t *tester) registerTests() { if fortran == "" { fortran, _ = exec.LookPath("gfortran") } - if fortran != "" && t.goos != "dragonfly" { // see golang.org/issue/14544 + if t.hasBash() && fortran != "" && t.goos != "dragonfly" { // see golang.org/issue/14544 t.tests = append(t.tests, distTest{ name: "cgo_fortran", heading: "../misc/cgo/fortran",