aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/ed25519/ed25519_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/ed25519/ed25519_test.go')
-rw-r--r--src/crypto/ed25519/ed25519_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/crypto/ed25519/ed25519_test.go b/src/crypto/ed25519/ed25519_test.go
index 84fdc3ca8b..7c5181788f 100644
--- a/src/crypto/ed25519/ed25519_test.go
+++ b/src/crypto/ed25519/ed25519_test.go
@@ -9,6 +9,7 @@ import (
"bytes"
"compress/gzip"
"crypto"
+ "crypto/internal/boring"
"crypto/rand"
"encoding/hex"
"os"
@@ -186,7 +187,9 @@ func TestMalleability(t *testing.T) {
}
func TestAllocations(t *testing.T) {
- t.Skip("skipping allocations test on Go+BoringCrypto, as cgo causes allocations")
+ if boring.Enabled {
+ t.Skip("skipping allocations test with BoringCrypto")
+ }
if strings.HasSuffix(os.Getenv("GO_BUILDER_NAME"), "-noopt") {
t.Skip("skipping allocations test without relevant optimizations")
}
@@ -200,7 +203,7 @@ func TestAllocations(t *testing.T) {
t.Fatal("signature didn't verify")
}
}); allocs > 0 {
- t.Errorf("expected zero allocations, got %0.1v", allocs)
+ t.Errorf("expected zero allocations, got %0.1f", allocs)
}
}