Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Tests/SWBBuildSystemTests/BuildCommandTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", #require(outputs.first)])
let assembly = try String(contentsOfFile: #require(outputs.first), encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
#expect(assembly.contains("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
results.checkNoTask()
}
Expand All @@ -232,7 +232,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", #require(outputs.first)])
let assembly = try String(contentsOfFile: #require(outputs.first), encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
#expect(assembly.contains("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
results.checkNoTask()
}
Expand All @@ -246,13 +246,13 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", firstOutput])
let assembly = try String(contentsOfFile: firstOutput, encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
#expect(assembly.contains("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
try results.checkTask(.matchRuleType("Assemble"), .matchRuleItemBasename("File.m"), .matchRuleItem("normal"), .matchRuleItem(results.runDestinationTargetArchitecture), .matchTargetName("bFramework")) { task in
task.checkCommandLineContainsUninterrupted(["-x", "objective-c"])
try task.checkCommandLineContainsUninterrupted(["-S", #require(inputs.first).str, "-o", secondOutput])
let assembly = try String(contentsOfFile: secondOutput, encoding: .utf8)
#expect(assembly.hasPrefix("\t.section\t__TEXT,__text,regular,pure_instructions"))
#expect(assembly.contains("\t.section\t__TEXT,__text,regular,pure_instructions"))
}
results.checkNoTask()
results.checkNoErrors()
Expand Down
Loading