Skip to content

Commit a2936a3

Browse files
committed
Make compiletest set an environment variable so that on Windows 32-bit test executables containing certain substrings (e.g. 'install', 'setup', 'update', 'patch') are not blocked by UAC's Installer Detection Technology.
1 parent 6869645 commit a2936a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiletest/compiletest.rs

+3
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ pub fn run_tests(config: &Config) {
264264
// parallel (especially when we have lots and lots of child processes).
265265
// For context, see #8904
266266
io::test::raise_fd_limit();
267+
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
268+
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
269+
os::setenv("__COMPAT_LAYER", "RunAsInvoker");
267270
let res = test::run_tests_console(&opts, tests.into_iter().collect());
268271
match res {
269272
Ok(true) => {}

0 commit comments

Comments
 (0)