Skip to content

Commit f07ed13

Browse files
committed
Include XTestGoFiles when compiling tests.
This resolves an issue where goflymake is used on a *_test.go source file which is declared in a _test package and reports: "? command-line-arguments [no test files]" Tested against Go 1.2.2.
1 parent feac0c6 commit f07ed13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ func main() {
6161
files = append(files, pkg.CgoFiles...)
6262
if isTest {
6363
files = append(files, pkg.TestGoFiles...)
64+
files = append(files, pkg.XTestGoFiles...)
6465
}
6566

6667
for _, f := range files {

0 commit comments

Comments
 (0)