diff options
| author | Ian Lance Taylor <iant@golang.org> | 2017-01-14 00:05:42 +0000 |
|---|---|---|
| committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-01-14 00:05:42 +0000 |
| commit | c2047754c300b68c05d65faa8dc2925fe67b71b4 (patch) | |
| tree | e183ae81a1f48a02945cb6de463a70c5be1b06f6 /libgo/testsuite | |
| parent | 829afb8f05602bb31c9c597b24df7377fed4f059 (diff) | |
libgo: update to Go 1.8 release candidate 1
Compiler changes:
* Change map assignment to use mapassign and assign value directly.
* Change string iteration to use decoderune, faster for ASCII strings.
* Change makeslice to take int, and use makeslice64 for larger values.
* Add new noverflow field to hmap struct used for maps.
Unresolved problems, to be fixed later:
* Commented out test in go/types/sizes_test.go that doesn't compile.
* Commented out reflect.TestStructOf test for padding after zero-sized field.
Reviewed-on: https://go-review.googlesource.com/35231
gotools/:
Updates for Go 1.8rc1.
* Makefile.am (go_cmd_go_files): Add bug.go.
(s-zdefaultcc): Write defaultPkgConfig.
* Makefile.in: Rebuild.
From-SVN: r244456
Diffstat (limited to 'libgo/testsuite')
| -rwxr-xr-x | libgo/testsuite/gotest | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/libgo/testsuite/gotest b/libgo/testsuite/gotest index 980e9483a6f..f070a8ae69e 100755 --- a/libgo/testsuite/gotest +++ b/libgo/testsuite/gotest @@ -542,7 +542,7 @@ localname() { echo 'import "./_xtest_"' fi echo 'import "testing"' - echo 'import __regexp__ "regexp"' # rename in case tested package is called regexp + echo 'import "testing/internal/testdeps"' if ! test -n "$testmain"; then echo 'import __os__ "os"' fi @@ -585,22 +585,8 @@ localname() { # body echo \ ' -var matchPat string -var matchRe *__regexp__.Regexp - -func matchString(pat, str string) (result bool, err error) { - if matchRe == nil || matchPat != pat { - matchPat = pat - matchRe, err = __regexp__.Compile(matchPat) - if err != nil { - return - } - } - return matchRe.MatchString(str), nil -} - func main() { - m := testing.MainStart(matchString, tests, benchmarks, examples) + m := testing.MainStart(testdeps.TestDeps{}, tests, benchmarks, examples) ' if test -n "$testmain"; then echo " ${testmain}(m)" |
