Skip to content

Commit 1a3a656

Browse files
committed
Testing...
1 parent 998684a commit 1a3a656

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/Workspace/DefaultPluginScriptRunner.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ public struct DefaultPluginScriptRunner: PluginScriptRunner, Cancellable {
119119

120120
// We use the toolchain's Swift compiler for compiling the plugin.
121121
var commandLine = [self.toolchain.swiftCompilerPathForManifests.pathString]
122+
123+
observabilityScope.emit(debug: "Using compiler \(self.toolchain.swiftCompilerPathForManifests.pathString)")
122124

123125
// Get access to the path containing the PackagePlugin module and library.
124126
let pluginLibraryPath = self.toolchain.swiftPMLibrariesLocation.pluginLibraryPath

Tests/SPMBuildCoreTests/PluginInvocationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ class PluginInvocationTests: XCTestCase {
376376
// Check the serialized diagnostics. We should no longer have an error but now have a warning.
377377
let diaFileContents = try localFileSystem.readFileContents(result.diagnosticsFile)
378378
let diagnosticsSet = try SerializedDiagnostics(bytes: diaFileContents)
379-
XCTAssertEqual(diagnosticsSet.diagnostics.count, 1)
379+
XCTAssertEqual(diagnosticsSet.diagnostics.count, 1, "unexpected diagnostics count in \(diagnosticsSet.diagnostics)")
380380
let warningDiagnostic = try XCTUnwrap(diagnosticsSet.diagnostics.first)
381381
XCTAssertTrue(warningDiagnostic.text.hasPrefix("variable \'unused\' was never used"), "\(warningDiagnostic)")
382382

0 commit comments

Comments
 (0)