Skip to content

Commit

Permalink
Fix TSX test information. (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugelgupf authored and klauspost committed Nov 11, 2018
1 parent e7e905e commit c640019
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpuid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,14 +634,14 @@ func TestVM(t *testing.T) {
t.Log("Vendor ID:", CPU.VM())
}

// NSC returns true if vendor is recognized as National Semiconductor
// TSX returns true if cpu supports transactional sync extensions.
func TestCPUInfo_TSX(t *testing.T) {
got := CPU.TSX()
expected := CPU.HLE() && CPU.RTM()
if got != expected {
t.Fatalf("TestNSC: expected %v, got %v", expected, got)
t.Fatalf("TestCPUInfo_TSX: expected %v, got %v", expected, got)
}
t.Log("TestNSC:", got)
t.Log("TestCPUInfo_TSX:", got)
}

// Test RTCounter function
Expand Down

0 comments on commit c640019

Please sign in to comment.