From cad477c922b8b6f71e3f0968822841430516c639 Mon Sep 17 00:00:00 2001 From: ag9920 Date: Tue, 14 Jun 2022 02:09:10 +0000 Subject: [PATCH] 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 --- src/internal/cpu/cpu_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/internal/cpu/cpu_test.go b/src/internal/cpu/cpu_test.go index e72d2d639ce..c95cd517266 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") }