aboutsummaryrefslogtreecommitdiff
path: root/src/internal/cpu/cpu_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/cpu/cpu_test.go')
-rw-r--r--src/internal/cpu/cpu_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/cpu/cpu_test.go b/src/internal/cpu/cpu_test.go
index c95cd51726..5aa277f960 100644
--- a/src/internal/cpu/cpu_test.go
+++ b/src/internal/cpu/cpu_test.go
@@ -48,7 +48,7 @@ func TestDisableAllCapabilities(t *testing.T) {
func TestAllCapabilitiesDisabled(t *testing.T) {
MustHaveDebugOptionsSupport(t)
- if godebug.Get("cpu.all") != "off" {
+ if godebug.New("cpu.all").Value() != "off" {
t.Skipf("skipping test: GODEBUG=cpu.all=off not set")
}