Skip to content

Commit 2ed10a7

Browse files
committed
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.
1 parent d1eb74a commit 2ed10a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/Macros/macro_plugin_basic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: -o %t/mock-plugin \
1212
// RUN: %t/plugin.c
1313

14-
// RUN: SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
14+
// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
1515
// RUN: -typecheck -verify \
1616
// RUN: -swift-version 5 \
1717
// RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \

test/Macros/macro_plugin_error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// RUN: -o %t/mock-plugin \
1212
// RUN: %t/plugin.c
1313

14-
// RUN: SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
14+
// RUN: env SWIFT_DUMP_PLUGIN_MESSAGING=1 %swift-target-frontend \
1515
// RUN: -typecheck -verify \
1616
// RUN: -swift-version 5 -enable-experimental-feature Macros \
1717
// RUN: -load-plugin-executable %t/mock-plugin#TestPlugin \

0 commit comments

Comments
 (0)