1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 13:21:13 +02:00

Merge pull request #386 from google/fix_formatting

[NFC] fix formatting
This commit is contained in:
Guillaume Chatelet
2025-02-26 13:31:36 +01:00
committed by GitHub

View File

@ -27,7 +27,8 @@ namespace {
TEST(CpuinfoMipsTest, MipsFeaturesEnum) {
const char* last_name = GetMipsFeaturesEnumName(MIPS_LAST_);
EXPECT_STREQ(last_name, "unknown_feature");
for (int i = static_cast<int>(MIPS_MSA); i != static_cast<int>(MIPS_LAST_); ++i) {
for (int i = static_cast<int>(MIPS_MSA); i != static_cast<int>(MIPS_LAST_);
++i) {
const auto feature = static_cast<MipsFeaturesEnum>(i);
const char* name = GetMipsFeaturesEnumName(feature);
ASSERT_FALSE(name == nullptr);
@ -144,7 +145,8 @@ VCEI exceptions : not available
TEST(CpuinfoMipsTest, BCM1250) {
ResetHwcaps();
auto& fs = GetEmptyFilesystem();
fs.CreateFile("/proc/cpuinfo", R"(system type : SiByte BCM91250A (SWARM)
fs.CreateFile("/proc/cpuinfo",
R"(system type : SiByte BCM91250A (SWARM)
processor : 0
cpu model : SiByte SB1 V0.2 FPU V0.2
BogoMIPS : 532.48