From c307dc596317ee4ae59c3dfb8f5de7448e05f63f Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Wed, 26 Feb 2025 10:59:45 +0000 Subject: [PATCH] [NFC] fix formatting --- test/cpuinfo_mips_test.cc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/test/cpuinfo_mips_test.cc b/test/cpuinfo_mips_test.cc index 02ca6c9..9223dc4 100644 --- a/test/cpuinfo_mips_test.cc +++ b/test/cpuinfo_mips_test.cc @@ -25,15 +25,16 @@ namespace cpu_features { namespace { TEST(CpuinfoMipsTest, MipsFeaturesEnum) { - const char *last_name = GetMipsFeaturesEnumName(MIPS_LAST_); - EXPECT_STREQ(last_name, "unknown_feature"); - for (int i = static_cast(MIPS_MSA); i != static_cast(MIPS_LAST_); ++i) { - const auto feature = static_cast(i); - const char *name = GetMipsFeaturesEnumName(feature); - ASSERT_FALSE(name == nullptr); - EXPECT_STRNE(name, ""); - EXPECT_STRNE(name, last_name); - } + const char* last_name = GetMipsFeaturesEnumName(MIPS_LAST_); + EXPECT_STREQ(last_name, "unknown_feature"); + for (int i = static_cast(MIPS_MSA); i != static_cast(MIPS_LAST_); + ++i) { + const auto feature = static_cast(i); + const char* name = GetMipsFeaturesEnumName(feature); + ASSERT_FALSE(name == nullptr); + EXPECT_STRNE(name, ""); + EXPECT_STRNE(name, last_name); + } } TEST(CpuinfoMipsTest, FromHardwareCapBoth) { @@ -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