Browse code

Windows: Native make test-unit

Signed-off-by: John Howard <jhoward@microsoft.com>

John Howard authored on 2015/11/08 01:23:10
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