]> Cypherpunks repositories - gostls13.git/commit
test/fixedbugs: fix some tests will not be run
authorLE Manh Cuong <cuong.manhle.vn@gmail.com>
Fri, 17 May 2019 10:25:07 +0000 (17:25 +0700)
committerIan Lance Taylor <iant@golang.org>
Thu, 23 May 2019 01:39:41 +0000 (01:39 +0000)
commit3e9d8e2e1bb94c3e302da8121f9cc018d86d1e71
treeb414226be44bb063201e4c1d35da5b218e96f9d6
parent7a567a631f48f19817a4c9a221e9951ffebfa8cb
test/fixedbugs: fix some tests will not be run

Currently, some tests under test/fixedbugs never run:

$ for d in test/fixedbugs/*.dir; do
  ! test -f "${d%.dir}.go" && echo "$d"
done
test/fixedbugs/issue15071.dir
test/fixedbugs/issue15609.dir
test/fixedbugs/issue29612.dir

Because they missed the corresponding ".go" file, so "go run run.go"
will skip them.

Add missing ".go" files for those tests to make sure they will be
collected and run.

While at it, add another action "runindir", which does "go run ."
inside the t.goDirName then check the output.

Change-Id: I88000b3663a6a615d90c1cf11844ea0377403e3d
Reviewed-on: https://go-review.googlesource.com/c/go/+/177798
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/fixedbugs/issue15071.dir/exp.go [moved from test/fixedbugs/issue15071.dir/exp/exp.go with 100% similarity]
test/fixedbugs/issue15071.go [new file with mode: 0644]
test/fixedbugs/issue15609.go [new file with mode: 0644]
test/fixedbugs/issue29612.go [new file with mode: 0644]
test/run.go