]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix long test builders
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 23 Aug 2021 02:31:54 +0000 (09:31 +0700)
committerCuong Manh Le <cuong.manhle.vn@gmail.com>
Mon, 23 Aug 2021 03:39:14 +0000 (03:39 +0000)
CL 343732 enabled -G=3 by default. The types2 typechecker uses slighly
different error message format for language feature constraint.

The old typechecker format:

vendor/example.net/need117/need117.go:5:16: cannot convert s (type []byte) to type *[4]byte:
conversion of slices to array pointers only supported as of -lang=go1.17

The new format:

vendor/example.net/need117/need117.go:5:17: conversion of slices to array pointers only supported as of -lang=go1.17

caused the long test builders failed.

This CL fixes the test by relaxing the regext pattern a bit, so it can
match both the format.

Change-Id: I1c4acaa9e34b6c08dccbbc3ce7a99d4cd79f748a
Reviewed-on: https://go-review.googlesource.com/c/go/+/344212
Trust: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/go/testdata/script/mod_vendor_goversion.txt

index aa4cb41171a5199aaf94fd8566d050798ec31fff..7f1966c8e890fc1826ad029e90cc5b2c78dfc958 100644 (file)
@@ -26,7 +26,7 @@ go mod vendor
 
 ! grep 1.17 vendor/modules.txt
 ! go build example.net/need117
-stderr '^vendor[/\\]example\.net[/\\]need117[/\\]need117.go:5:18: .*\n\tconversion of slices to array pointers only supported as of -lang=go1\.17'
+stderr '^vendor[/\\]example\.net[/\\]need117[/\\]need117.go:5:1[89]: .*conversion of slices to array pointers only supported as of -lang=go1\.17'
 
 ! grep 1.13 vendor/modules.txt
 go build example.net/bad114