mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
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.
This commit is contained in:
@@ -509,7 +509,8 @@ func BenchmarkImageExif(b *testing.B) {
|
|||||||
var usesFMA = runtime.GOARCH == "s390x" ||
|
var usesFMA = runtime.GOARCH == "s390x" ||
|
||||||
runtime.GOARCH == "ppc64" ||
|
runtime.GOARCH == "ppc64" ||
|
||||||
runtime.GOARCH == "ppc64le" ||
|
runtime.GOARCH == "ppc64le" ||
|
||||||
runtime.GOARCH == "arm64"
|
runtime.GOARCH == "arm64" ||
|
||||||
|
runtime.GOARCH == "riscv64"
|
||||||
|
|
||||||
// goldenEqual compares two NRGBA images. It is used in golden tests only.
|
// goldenEqual compares two NRGBA images. It is used in golden tests only.
|
||||||
// A small tolerance is allowed on architectures using "fused multiply and add"
|
// A small tolerance is allowed on architectures using "fused multiply and add"
|
||||||
|
Reference in New Issue
Block a user