From: ag9920 Date: Tue, 14 Jun 2022 02:09:10 +0000 (+0000) Subject: cpu: fix typos in test case X-Git-Tag: go1.19rc1~128 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cad477c922b8b6f71e3f0968822841430516c639;p=gostls13.git cpu: fix typos in test case Change-Id: Id6a27d0b3f3fc4181a00569bacc578e72b04ce09 GitHub-Last-Rev: 85c063d1a2d62181d16044592a60acf970fe3c86 GitHub-Pull-Request: golang/go#53359 Reviewed-on: https://go-review.googlesource.com/c/go/+/411916 Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Peter Zhang Auto-Submit: Ian Lance Taylor Reviewed-by: Robert Griesemer Run-TryBot: Ian Lance Taylor --- diff --git a/src/internal/cpu/cpu_test.go b/src/internal/cpu/cpu_test.go index e72d2d639c..c95cd51726 100644 --- a/src/internal/cpu/cpu_test.go +++ b/src/internal/cpu/cpu_test.go @@ -19,7 +19,7 @@ func MustHaveDebugOptionsSupport(t *testing.T) { } } -func MustSupportFeatureDectection(t *testing.T) { +func MustSupportFeatureDetection(t *testing.T) { // TODO: add platforms that do not have CPU feature detection support. } @@ -41,7 +41,7 @@ func runDebugOptionsTest(t *testing.T, test string, options string) { } func TestDisableAllCapabilities(t *testing.T) { - MustSupportFeatureDectection(t) + MustSupportFeatureDetection(t) runDebugOptionsTest(t, "TestAllCapabilitiesDisabled", "cpu.all=off") }