summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-04-25 08:55:39 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-07-30 14:08:02 +0000
commitcbab16feafcd828c813a1c4926eade67f464cff9 (patch)
tree00352bdd56f87d339c62df1157e35b30ec0699bd /src/tools/compiletest
parenta5ee5cbad1dde83dde61959e9436716094e3408c (diff)
downloadrust-cbab16feafcd828c813a1c4926eade67f464cff9.tar.gz
rust-cbab16feafcd828c813a1c4926eade67f464cff9.zip
Test RUSTC_OVERRIDE_VERSION_STRING
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/header.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs
index 0208ed34ac1..cde3e3295c6 100644
--- a/src/tools/compiletest/src/header.rs
+++ b/src/tools/compiletest/src/header.rs
@@ -330,6 +330,7 @@ impl TestProps {
     pub fn from_file(testfile: &Path, revision: Option<&str>, config: &Config) -> Self {
         let mut props = TestProps::new();
         props.load_from(testfile, revision, config);
+        props.exec_env.push(("RUSTC".to_string(), config.rustc_path.display().to_string()));
 
         match (props.pass_mode, props.fail_mode) {
             (None, None) if config.mode == Mode::Ui => props.fail_mode = Some(FailMode::Check),