Browse code

Merge pull request #17786 from Microsoft/10662-nativetestunit

Windows: Native make test-unit

Vincent Demeester authored on 2015/11/08 19:12:09
Showing 1 changed files
... ...
@@ -25,7 +25,8 @@ bundle_test_unit() {
25 25
 	go test $COVER $GCCGOFLAGS -ldflags "$LDFLAGS" "${BUILDFLAGS[@]}" $TESTFLAGS $pkg_list
26 26
 }
27 27
 
28
-if [[ "$(go version)" =~ "gccgo" ]]; then
28
+
29
+if [[ "$(go version)" == *"gccgo"* ]]; then
29 30
 	GCCGOFLAGS=-gccgoflags="-lpthread"
30 31
 else
31 32
 	COVER=-cover