diff options
| author | Jakub Beránek <berykubik@gmail.com> | 2024-06-06 21:34:34 +0200 |
|---|---|---|
| committer | Jakub Beránek <berykubik@gmail.com> | 2024-06-07 11:12:24 +0200 |
| commit | d86c9819087fbc64b7d0a638b2fd8584831bb661 (patch) | |
| tree | d5b0e3ae2f0816945d3712b9986f9b022af529bf /tests/run-make/cdylib | |
| parent | 94ccb9b34d5cd9472bd2651055efb6a75d6649c8 (diff) | |
Remove all usages of `tmp_dir` from tests
Diffstat (limited to 'tests/run-make/cdylib')
| -rw-r--r-- | tests/run-make/cdylib/rmake.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tests/run-make/cdylib/rmake.rs b/tests/run-make/cdylib/rmake.rs index fcb4f56621f..1920f618473 100644 --- a/tests/run-make/cdylib/rmake.rs +++ b/tests/run-make/cdylib/rmake.rs @@ -12,20 +12,16 @@ use std::fs::remove_file; -use run_make_support::{cc, dynamic_lib, is_msvc, run, rustc, tmp_dir}; +use run_make_support::{cc, cwd, dynamic_lib, is_msvc, run, rustc}; fn main() { rustc().input("bar.rs").run(); rustc().input("foo.rs").run(); if is_msvc() { - cc().input("foo.c").arg(tmp_dir().join("foo.dll.lib")).out_exe("foo").run(); + cc().input("foo.c").arg("foo.dll.lib").out_exe("foo").run(); } else { - cc().input("foo.c") - .arg("-lfoo") - .output(tmp_dir().join("foo")) - .library_search_path(tmp_dir()) - .run(); + cc().input("foo.c").arg("-lfoo").library_search_path(cwd()).output("foo").run(); } run("foo"); |
