From 2ed10a72b1ba961ce54562d4cafdb290244da3db Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 3 Sep 2023 20:47:10 -0700 Subject: [PATCH] tests: add missing `env` The `env` is required to set the environment variable as executing with environment variables is a SysV Shell thing and is not generally portable. This is required to support Windows. --- test/Macros/macro_plugin_basic.swift | 2 +- test/Macros/macro_plugin_error.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Macros/macro_plugin_basic.swift b/test/Macros/macro_plugin_basic.swift index 9213d3b2a3c58..a1ebf17863c4a 100644 --- a/test/Macros/macro_plugin_basic.swift +++ b/test/Macros/macro_plugin_basic.swift @@ -11,7 +11,7 @@ // RUN: -o %t/mock-plugin \ // RUN: %t/plugin.c -// RUN: SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \ +// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \ // RUN: -typecheck -verify \ // RUN: -swift-version 5 \ // RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \ diff --git a/test/Macros/macro_plugin_error.swift b/test/Macros/macro_plugin_error.swift index ebab709d4798c..d5a0b9fa631ea 100644 --- a/test/Macros/macro_plugin_error.swift +++ b/test/Macros/macro_plugin_error.swift @@ -11,7 +11,7 @@ // RUN: -o %t/mock-plugin \ // RUN: %t/plugin.c -// RUN: SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \ +// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \ // RUN: -typecheck -verify \ // RUN: -swift-version 5 -enable-experimental-feature Macros \ // RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \