mirror of
https://github.com/golang/go
synced 2024-11-02 13:42:29 +00:00
image/gif,image/jpeg,image/png: skip FuzzDecode in testing short mode
The image/gif.FuzzDecode takes an excessive amount of time to run on various builders - skip these in testing short mode. Likewise for image/jpeg and image/png. Fixes #55839 Change-Id: I1049d06b9dcbbc7dbc4f53d3c49b64e2254eabbd Reviewed-on: https://go-review.googlesource.com/c/go/+/435175 Reviewed-by: Roland Shoemaker <roland@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Bryan Mills <bcmills@google.com>
This commit is contained in:
parent
789e798f04
commit
e978ef36e3
3 changed files with 12 additions and 0 deletions
|
@ -14,6 +14,10 @@ import (
|
|||
)
|
||||
|
||||
func FuzzDecode(f *testing.F) {
|
||||
if testing.Short() {
|
||||
f.Skip("Skipping in short mode")
|
||||
}
|
||||
|
||||
testdata, err := os.ReadDir("../testdata")
|
||||
if err != nil {
|
||||
f.Fatalf("failed to read testdata directory: %s", err)
|
||||
|
|
|
@ -14,6 +14,10 @@ import (
|
|||
)
|
||||
|
||||
func FuzzDecode(f *testing.F) {
|
||||
if testing.Short() {
|
||||
f.Skip("Skipping in short mode")
|
||||
}
|
||||
|
||||
testdata, err := os.ReadDir("../testdata")
|
||||
if err != nil {
|
||||
f.Fatalf("failed to read testdata directory: %s", err)
|
||||
|
|
|
@ -14,6 +14,10 @@ import (
|
|||
)
|
||||
|
||||
func FuzzDecode(f *testing.F) {
|
||||
if testing.Short() {
|
||||
f.Skip("Skipping in short mode")
|
||||
}
|
||||
|
||||
testdata, err := os.ReadDir("../testdata")
|
||||
if err != nil {
|
||||
f.Fatalf("failed to read testdata directory: %s", err)
|
||||
|
|
Loading…
Reference in a new issue