@@ -150,32 +150,3 @@ TEST_F(AvailabilityDomainLattice, RootDomain) {
150
150
EXPECT_EQ (visionOSAppExt.getRootDomain (), iOS);
151
151
EXPECT_FALSE (visionOSAppExt.isRoot ());
152
152
}
153
-
154
- TEST (AvailabilityDomain, TargetPlatform) {
155
- using namespace llvm ;
156
-
157
- struct TargetToPlatformKind {
158
- Triple target;
159
- PlatformKind platformKind;
160
- };
161
- TargetToPlatformKind tests[] = {
162
- {Triple (" x86_64" , " apple" , " macosx10.15" ), PlatformKind::macOS},
163
- {Triple (" arm64" , " apple" , " ios13" ), PlatformKind::iOS},
164
- {Triple (" arm64_32" , " apple" , " watchos8" ), PlatformKind::watchOS},
165
- {Triple (" x86_64" , " apple" , " ios14" , " macabi" ), PlatformKind::macCatalyst},
166
- {Triple (" x86_64" , " unknown" , " windows" , " msvc" ), PlatformKind::none},
167
- {Triple (" x86_64" , " unknown" , " linux" , " gnu" ), PlatformKind::none},
168
- };
169
-
170
- for (TargetToPlatformKind test : tests) {
171
- TestContext context{test.target };
172
- auto domain = AvailabilityDomain::forTargetPlatform (context.Ctx );
173
- if (test.platformKind != PlatformKind::none) {
174
- EXPECT_TRUE (domain);
175
- if (domain)
176
- EXPECT_TRUE (domain->getPlatformKind () == test.platformKind );
177
- } else {
178
- EXPECT_FALSE (domain);
179
- }
180
- }
181
- }
0 commit comments