]> Cypherpunks repositories - gostls13.git/commitdiff
test: disable issue 29329 test when cgo is not enabled
authorAlberto Donizetti <alb.donizetti@gmail.com>
Sat, 29 Dec 2018 12:11:34 +0000 (13:11 +0100)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 29 Dec 2018 14:18:11 +0000 (14:18 +0000)
CL 155917 added a -race test that shouldn't be run when cgo is not
enabled. Enforce this in the test file, with a buildflag.

Fixes the nocgo builder.

Change-Id: I9fe0d8f21da4d6e2de3f8fe9395e1fa7e9664b02
Reviewed-on: https://go-review.googlesource.com/c/155957
Run-TryBot: Alberto Donizetti <alb.donizetti@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
test/fixedbugs/issue29329.go

index 1c2825e3bc0aeff56db3b55caceb53597ea32678..7818bca30a02e657bf357c55fe0e3b74fd7ea3d8 100644 (file)
@@ -1,3 +1,4 @@
+// +build cgo
 // run -race
 
 // Copyright 2018 The Go Authors. All rights reserved.