Skip to content

Commit 3a46161

Browse files
committed
test: acount for plugin extension on Windows
The plugin server on Windows is an executable and thus has the `.exe` extension that we did not match. Adjust the test for this naming difference.
1 parent ccf6cf7 commit 3a46161

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/CAS/macro_plugin_external.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
// CMD-REMAP: -resolved-plugin-verification
6161
// CMD-REMAP-NEXT: -load-resolved-plugin
62-
// CMD-REMAP-NEXT: /^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server#MacroDefinition
62+
// CMD-REMAP-NEXT: /^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server{{(.exe)?}}#MacroDefinition
6363

6464
// RUN: %target-swift-frontend-plain \
6565
// RUN: -emit-module -o %t/Macro.swiftmodule -cache-compile-job -cas-path %t/cas \
@@ -74,7 +74,7 @@
7474
/// Encoded PLUGIN_SEARCH_OPTION is remapped.
7575
// RUN: llvm-bcanalyzer -dump %t/Macro.swiftmodule | %FileCheck %s --check-prefix=MOD -DLIB=%target-library-name(MacroDefinition)
7676

77-
// MOD: <PLUGIN_SEARCH_OPTION abbrevid=7 op0=4/> blob data = '/^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server#MacroDefinition'
77+
// MOD: <PLUGIN_SEARCH_OPTION abbrevid=7 op0=4/> blob data = '/^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server{{(.exe)?}}#MacroDefinition'
7878

7979
/// Cache hit has no macro-loading remarks because no macro is actually loaded and the path might not be correct due to different mapping.
8080
// RUN: %target-swift-frontend-plain \

0 commit comments

Comments
 (0)