about summary refs log tree commit diff
path: root/tests/run-make/alloc-no-sync
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2024-06-06 18:35:46 +0200
committerJakub Beránek <berykubik@gmail.com>2024-06-06 19:16:53 +0200
commit6e1121b492b61ba5aab14004a9ef1227a1358c21 (patch)
treef50a517532513482a6eff553396991f12b9ac89c /tests/run-make/alloc-no-sync
parent67caf52fbc4f10cdf427f04e6cbb35c8b9d96bb7 (diff)
downloadrust-6e1121b492b61ba5aab14004a9ef1227a1358c21.tar.gz
rust-6e1121b492b61ba5aab14004a9ef1227a1358c21.zip
Do not use relative paths to Rust source root in run-make tests
Diffstat (limited to 'tests/run-make/alloc-no-sync')
-rw-r--r--tests/run-make/alloc-no-sync/rmake.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-make/alloc-no-sync/rmake.rs b/tests/run-make/alloc-no-sync/rmake.rs
index 3a3ceed6867..29f204f3067 100644
--- a/tests/run-make/alloc-no-sync/rmake.rs
+++ b/tests/run-make/alloc-no-sync/rmake.rs
@@ -2,14 +2,14 @@
 // when the unstable no_sync feature is turned on.
 // See https://github.com/rust-lang/rust/pull/84266
 
-use run_make_support::rustc;
+use run_make_support::{rustc, source_root};
 
 fn main() {
     rustc()
         .edition("2021")
         .arg("-Dwarnings")
         .crate_type("rlib")
-        .input("../../../library/alloc/src/lib.rs")
+        .input(source_root().join("library/alloc/src/lib.rs"))
         .cfg("no_sync")
         .run();
 }