gitlab.com/apertussolutions/u-root@v7.0.0+incompatible/pkg/acpi/rsdp_linux_test.go (about) 1 // Copyright 2019 the u-root Authors. All rights reserved 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package acpi 6 7 import ( 8 "testing" 9 10 "github.com/u-root/u-root/pkg/testutil" 11 ) 12 13 // TestRSDP tests whether any method for getting an RSDP works. 14 func TestRSDP(t *testing.T) { 15 testutil.SkipIfNotRoot(t) 16 17 _, err := GetRSDP() 18 if err != nil { 19 t.Fatalf("GetRSDP: got %v, want nil", err) 20 } 21 }