From: Anthony Fok Date: Wed, 20 Mar 2024 07:59:13 +0000 (-0600) Subject: testing: Set usesFMA as true for riscv64 too X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c1ea22a232add4c6f371b4278dd3089f102ac15c;p=brevno-suite%2Fhugo testing: Set usesFMA as true for riscv64 too This fixes TestImageOperationsGolden "values are not deep equal" error on riscv64 with Go 1.22 and above. --- diff --git a/resources/image_test.go b/resources/image_test.go index a6b54d3dd..231a06453 100644 --- a/resources/image_test.go +++ b/resources/image_test.go @@ -509,7 +509,8 @@ func BenchmarkImageExif(b *testing.B) { var usesFMA = runtime.GOARCH == "s390x" || runtime.GOARCH == "ppc64" || runtime.GOARCH == "ppc64le" || - runtime.GOARCH == "arm64" + runtime.GOARCH == "arm64" || + runtime.GOARCH == "riscv64" // goldenEqual compares two NRGBA images. It is used in golden tests only. // A small tolerance is allowed on architectures using "fused multiply and add"