about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKernelJ <kernelj@epixxware.com>2015-01-22 03:41:32 +0000
committerKernelJ <kernelj@epixxware.com>2015-01-22 03:42:16 +0000
commita2936a3a69ae80693cedfac0a461754881d9a90e (patch)
tree05dd2c098a649c98ddbe1192e9746518f4001ea3
parent6869645e86c91544b8737b89809bdf10bef536d9 (diff)
downloadrust-a2936a3a69ae80693cedfac0a461754881d9a90e.tar.gz
rust-a2936a3a69ae80693cedfac0a461754881d9a90e.zip
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.
-rw-r--r--src/compiletest/compiletest.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiletest/compiletest.rs b/src/compiletest/compiletest.rs
index f3514c6e7bc..1fbb825a33f 100644
--- a/src/compiletest/compiletest.rs
+++ b/src/compiletest/compiletest.rs
@@ -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) => {}