]> Cypherpunks repositories - gostls13.git/commit
testing/fstest: treat dash specially when building glob
authorIan Lance Taylor <iant@golang.org>
Sun, 21 Feb 2021 23:28:41 +0000 (15:28 -0800)
committerIan Lance Taylor <iant@golang.org>
Thu, 25 Feb 2021 15:23:02 +0000 (15:23 +0000)
commitad17b65b340d5a40d0da1b4cbcdc239061e97c65
tree5007f080edafd763646999970ca7768aab635cc3
parent37ca84a9cd6a8a76dfe91263a17d2b92b17a24b3
testing/fstest: treat dash specially when building glob

"[-]" is not a valid path.Match pattern.

Fixes #44474

Change-Id: I0932bbf08ffb8ad0c5337d69d0893f53c1ba89ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/294869
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/testing/fstest/testfs.go
src/testing/fstest/testfs_test.go