From fcee603081c754044e682f9263f526fcefc9442c Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 9 Jan 2020 23:14:57 +0000 Subject: libgo: compile examples in _test packages Previously if the only names defined by _test packages were examples, the gotest script would emit an incorrect _testmain.go file. I worked around that by marking the example_test.go files +build ignored. This CL changes the gotest script to handle this case correctly, and removes the now-unnecessary build tags. Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/214039 From-SVN: r280085 --- libgo/go/fmt/example_test.go | 2 -- libgo/go/fmt/gostringer_example_test.go | 2 -- libgo/go/fmt/stringer_example_test.go | 2 -- 3 files changed, 6 deletions(-) (limited to 'libgo/go/fmt') diff --git a/libgo/go/fmt/example_test.go b/libgo/go/fmt/example_test.go index ae60abe..5962834 100644 --- a/libgo/go/fmt/example_test.go +++ b/libgo/go/fmt/example_test.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build ignore - package fmt_test import ( diff --git a/libgo/go/fmt/gostringer_example_test.go b/libgo/go/fmt/gostringer_example_test.go index 7c6b9f0..ab19ee3 100644 --- a/libgo/go/fmt/gostringer_example_test.go +++ b/libgo/go/fmt/gostringer_example_test.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build ignore - package fmt_test import ( diff --git a/libgo/go/fmt/stringer_example_test.go b/libgo/go/fmt/stringer_example_test.go index aa3cd05..c77e788 100644 --- a/libgo/go/fmt/stringer_example_test.go +++ b/libgo/go/fmt/stringer_example_test.go @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build ignore - package fmt_test import ( -- cgit v1.1