]> Cypherpunks repositories - gostls13.git/commit
test: eliminate use of Perl in fixedbugs/bug345.go
authorYury Smolsky <yury@smolsky.by>
Wed, 30 May 2018 16:46:59 +0000 (19:46 +0300)
committerBrad Fitzpatrick <bradfitz@golang.org>
Thu, 31 May 2018 13:29:50 +0000 (13:29 +0000)
commitcaf968616a3ee09d6c820428b4edebb68cfbde09
tree77bdaa5ab17c8c8008bbd3e53b43591432b36741
parentfffb3a5c20b31a8d6916697ebac19ac9e8d3f6e7
test: eliminate use of Perl in fixedbugs/bug345.go

To allow testing of fixedbugs/bug345.go in Go,
a new flag -n is introduced. This flag disables setting
of relative path for local imports and imports search path
to current dir, namely -D . -I . are not passed to the compiler.
Error regexps are fixed to allow running the test in temp directory.

This change eliminates the last place where Perl
script "errchk" was used.

Fixes #25586.

Change-Id: If085f466e6955312d77315f96d3ef1cb68495aef
Reviewed-on: https://go-review.googlesource.com/115277
Run-TryBot: Yury Smolsky <yury@smolsky.by>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
test/fixedbugs/bug345.dir/main.go
test/fixedbugs/bug345.go
test/run.go