]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/cgo: enable test with non-sensible build tag
authorAustin Clements <austin@google.com>
Mon, 8 May 2023 15:52:48 +0000 (11:52 -0400)
committerAustin Clements <austin@google.com>
Mon, 15 May 2023 15:42:13 +0000 (15:42 +0000)
The build tag on this file is currently unsatisfiable. It was clearly
supposed to be "linux || freebsd || openbsd", but the test doesn't
actually compile on FreeBSD or OpenBSD because they don't define
SYS_gettid. Change the build tag to just "linux".

Change-Id: Ifaffac5438e1b94a8588b5a00435461aa171a6fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/493603
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/cmd/cgo/internal/test/cgo_thread_lock.go

index 1c983375d92d738db9322125da585411a11ff47e..981830b6b93ab5610426d25aaa0bf52fb3f7e8ae 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-//go:build linux && freebsd && openbsd
+//go:build linux
 
 package cgotest