[Lldb-commits] [lldb] 4f215bf - Update unit test API usage (NFC)
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Mon Nov 29 13:14:46 PST 2021
Author: Adrian Prantl
Date: 2021-11-29T13:14:35-08:00
New Revision: 4f215bfa6ee525b245b81462d75c3e1e47d18f13
URL: https://github.com/llvm/llvm-project/commit/4f215bfa6ee525b245b81462d75c3e1e47d18f13
DIFF: https://github.com/llvm/llvm-project/commit/4f215bfa6ee525b245b81462d75c3e1e47d18f13.diff
LOG: Update unit test API usage (NFC)
Added:
Modified:
lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp b/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp
index 42549e89cc34a..87c30debfd793 100644
--- a/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp
+++ b/lldb/unittests/Platform/PlatformAppleSimulatorTest.cpp
@@ -30,10 +30,7 @@ static void testSimPlatformArchHasSimEnvironment(llvm::StringRef name) {
ASSERT_TRUE(platform_sp);
int num_arches = 0;
- while (true) {
- ArchSpec arch;
- if (!platform_sp->GetSupportedArchitectureAtIndex(num_arches, arch))
- break;
+ for (auto arch : platform_sp->GetSupportedArchitectures()) {
EXPECT_EQ(arch.GetTriple().getEnvironment(), llvm::Triple::Simulator);
num_arches++;
}
More information about the lldb-commits
mailing list