github.com/hugelgupf/u-root@v0.0.0-20191023214958-4807c632154c/pkg/acpi/rsdp_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  func TestRSDP(t *testing.T) {
    14  	testutil.SkipIfNotRoot(t)
    15  
    16  	_, err := GetRSDP()
    17  	if err != nil {
    18  		t.Fatalf("GetRSDP: got %v, want nil", err)
    19  	}
    20  }