Skip to content

Commit 3b58b13

Browse files
committed
Remove broken asserts in PIFLoadingTests
1 parent 20c0f4d commit 3b58b13

File tree

1 file changed

+1
-45
lines changed

1 file changed

+1
-45
lines changed

Tests/SWBCoreTests/PIFLoadingTests.swift

Lines changed: 1 addition & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,48 +1147,8 @@ private final class ProjectModelItemClass: ProjectModelItem {
11471147
}
11481148
}
11491149

1150-
@Test(.requireXcode16())
1150+
@Test
11511151
func loadingStandardTarget() throws {
1152-
let classOneFileRef: FileReference? = try
1153-
{
1154-
let fileRefPIF: [String: PropertyListItem] = [
1155-
"guid": "framework-source-fileReference-guid",
1156-
"type": "file",
1157-
"sourceTree": "PROJECT_DIR",
1158-
"path": "ClassOne.m",
1159-
"fileType": "sourcecode.c.objc",
1160-
]
1161-
1162-
// Convert the test data into a property list, then read the file reference from it.
1163-
return try FileReference( fromDictionary: fileRefPIF, withPIFLoader: pifLoader )
1164-
}()
1165-
let classTwoFileRef: FileReference? = try
1166-
{
1167-
let fileRefPIF: [String: PropertyListItem] = [
1168-
"guid": "app-source-fileReference-guid",
1169-
"type": "file",
1170-
"sourceTree": "PROJECT_DIR",
1171-
"path": "ClassTwo.m",
1172-
"fileType": "sourcecode.c.objc",
1173-
]
1174-
1175-
// Convert the test data into a property list, then read the file reference from it.
1176-
return try FileReference( fromDictionary: fileRefPIF, withPIFLoader: pifLoader )
1177-
}()
1178-
let cocoaFwkFileRef: FileReference? = try
1179-
{
1180-
let fileRefPIF: [String: PropertyListItem] = [
1181-
"guid": "cocoa-framework-fileReference-guid",
1182-
"type": "file",
1183-
"sourceTree": "<absolute>",
1184-
"path": "/System/Library/Frameworks/Cocoa.framework",
1185-
"fileType": "wrapper.framework",
1186-
]
1187-
1188-
// Convert the test data into a property list, then read the file reference from it.
1189-
return try FileReference( fromDictionary: fileRefPIF, withPIFLoader: pifLoader )
1190-
}()
1191-
11921152
// Load a framework target.
11931153
let frameworkTarget: StandardTarget? = try {
11941154
let testBuildConfigurationData: [String: PropertyListItem] = [
@@ -1365,10 +1325,6 @@ private final class ProjectModelItemClass: ProjectModelItem {
13651325

13661326
// Check that the build files and the target dependency resolved.
13671327
#expect(appTarget!.dependencies.map { $0.guid } == [frameworkTarget!.guid])
1368-
#expect((appTarget!.buildPhases[0] as! SourcesBuildPhase).buildFiles[0] === classOneFileRef!)
1369-
#expect((appTarget!.buildPhases[1] as! FrameworksBuildPhase).buildFiles[0] === cocoaFwkFileRef!)
1370-
#expect((frameworkTarget!.buildPhases[0] as! SourcesBuildPhase).buildFiles[0] === classTwoFileRef!)
1371-
#expect((frameworkTarget!.buildPhases[1] as! FrameworksBuildPhase).buildFiles[0] === classTwoFileRef!)
13721328
#expect(appTarget?.productReference.target == appTarget)
13731329
#expect(frameworkTarget?.productReference.target == frameworkTarget)
13741330
}

0 commit comments

Comments
 (0)