Skip to content

Commit dc27d29

Browse files
committed
Rollup merge of rust-lang#21496 - ColonelJ:paatch, r=alexcrichton
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.
2 parents acd044c + a2936a3 commit dc27d29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiletest/compiletest.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ pub fn run_tests(config: &Config) {
248248
// parallel (especially when we have lots and lots of child processes).
249249
// For context, see #8904
250250
io::test::raise_fd_limit();
251+
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
252+
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
253+
os::setenv("__COMPAT_LAYER", "RunAsInvoker");
251254
let res = test::run_tests_console(&opts, tests.into_iter().collect());
252255
match res {
253256
Ok(true) => {}

0 commit comments

Comments
 (0)