Skip to content

Commit

Permalink
Fixing the fixup XD
Browse files Browse the repository at this point in the history
  • Loading branch information
gchatelet committed Jun 25, 2021
1 parent edb372f commit 504ea1d
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/cpuinfo_x86_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@ TEST_F(CpuidX86Test, Nehalem) {
g_fake_cpu->SetWindowsIsProcessorFeaturePresent(
PF_SSE3_INSTRUCTIONS_AVAILABLE);
#elif defined(CPU_FEATURES_OS_DARWIN)
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse2");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse3");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.supplementalsse3");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse4_1");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse4_2");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse2");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse3");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.supplementalsse3");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse4_1");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse4_2");
#elif defined(CPU_FEATURES_OS_FREEBSD)
auto& fs = GetEmptyFilesystem();
fs.CreateFile("/var/run/dmesg.boot", R"(
Expand Down Expand Up @@ -421,12 +421,12 @@ TEST_F(CpuidX86Test, Atom) {
g_fake_cpu->SetWindowsIsProcessorFeaturePresent(
PF_SSE3_INSTRUCTIONS_AVAILABLE);
#elif defined(CPU_FEATURES_OS_DARWIN)
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse2");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse3");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.supplementalsse3");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse4_1");
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse4_2");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse2");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse3");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.supplementalsse3");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse4_1");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse4_2");
#elif defined(CPU_FEATURES_OS_FREEBSD)
fs.CreateFile("/var/run/dmesg.boot", R"(
---<<BOOT>>---
Expand Down Expand Up @@ -501,7 +501,7 @@ TEST_F(CpuidX86Test, P3) {
g_fake_cpu->SetWindowsIsProcessorFeaturePresent(
PF_XMMI_INSTRUCTIONS_AVAILABLE);
#elif defined(CPU_FEATURES_OS_DARWIN)
g_fake_cpu->GetDarwinSysCtlByName("hw.optional.sse");
g_fake_cpu->SetDarwinSysCtlByName("hw.optional.sse");
#elif defined(CPU_FEATURES_OS_FREEBSD)
fs.CreateFile("/var/run/dmesg.boot", R"(
---<<BOOT>>---
Expand Down

0 comments on commit 504ea1d

Please sign in to comment.