Skip to content

Commit

Permalink
Make compiletest set an environment variable so that on Windows 32-bi…
Browse files Browse the repository at this point in the history
…t test executables containing certain substrings (e.g. 'install', 'setup', 'update', 'patch') are not blocked by UAC's Installer Detection Technology.
  • Loading branch information
ColonelJ committed Jan 22, 2015
1 parent 6869645 commit a2936a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/compiletest/compiletest.rs
Expand Up @@ -264,6 +264,9 @@ pub fn run_tests(config: &Config) {
// parallel (especially when we have lots and lots of child processes).
// For context, see #8904
io::test::raise_fd_limit();
// Prevent issue #21352 UAC blocking .exe containing 'patch' etc. on Windows
// If #11207 is resolved (adding manifest to .exe) this becomes unnecessary
os::setenv("__COMPAT_LAYER", "RunAsInvoker");
let res = test::run_tests_console(&opts, tests.into_iter().collect());
match res {
Ok(true) => {}
Expand Down

0 comments on commit a2936a3

Please sign in to comment.