From 1ab037182bbf78ec8b6ca72c13a77be5da09cc08 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 10 Dec 2025 21:31:19 -0800 Subject: [PATCH] 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. --- test/CAS/macro_plugin_external.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/CAS/macro_plugin_external.swift b/test/CAS/macro_plugin_external.swift index 51f317586a486..9efcba39d7629 100644 --- a/test/CAS/macro_plugin_external.swift +++ b/test/CAS/macro_plugin_external.swift @@ -59,7 +59,7 @@ // CMD-REMAP: -resolved-plugin-verification // CMD-REMAP-NEXT: -load-resolved-plugin -// CMD-REMAP-NEXT: /^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server#MacroDefinition +// CMD-REMAP-NEXT: /^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server{{(.exe)?}}#MacroDefinition // RUN: %target-swift-frontend-plain \ // RUN: -emit-module -o %t/Macro.swiftmodule -cache-compile-job -cas-path %t/cas \ @@ -74,7 +74,7 @@ /// Encoded PLUGIN_SEARCH_OPTION is remapped. // RUN: llvm-bcanalyzer -dump %t/Macro.swiftmodule | %FileCheck %s --check-prefix=MOD -DLIB=%target-library-name(MacroDefinition) -// MOD: blob data = '/^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server#MacroDefinition' +// MOD: blob data = '/^test{{/|\\}}plugins{{/|\\}}[[LIB]]#/^bin{{/|\\}}swift-plugin-server{{(.exe)?}}#MacroDefinition' /// Cache hit has no macro-loading remarks because no macro is actually loaded and the path might not be correct due to different mapping. // RUN: %target-swift-frontend-plain \