]> git.lizzy.rs Git - rust.git/blobdiff - src/compiletest/compiletest.rs
Rollup merge of #21496 - ColonelJ:paatch, r=alexcrichton
[rust.git] / src / compiletest / compiletest.rs
index 1a9a1c08b07812c991d93734dca48984379ac9f1..b3f0034ca894f1bd2d6d2d650db280522e74478f 100644 (file)
@@ -248,6 +248,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) => {}