forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate tests/run-make/llvm-outputs to use rmake.rs
part of rust-lang#121876
- Loading branch information
1 parent
503dfcf
commit 91f5530
Showing
4 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// test that directories get created when emitting llvm bitcode and IR | ||
|
||
use run_make_support::{cwd, run_in_tmpdir, rustc}; | ||
use std::path::PathBuf; | ||
|
||
fn main() { | ||
let mut path_bc = PathBuf::new(); | ||
let mut path_ir = PathBuf::new(); | ||
run_in_tmpdir(|| { | ||
let p = cwd(); | ||
path_bc = p.join("nonexistant_dir_bc"); | ||
path_ir = p.join("nonexistant_dir_ir"); | ||
rustc().input("-").stdin("fn main() {}").out_dir(&path_bc).emit("llvm-bc").run(); | ||
rustc().input("-").stdin("fn main() {}").out_dir(&path_ir).emit("llvm-ir").run(); | ||
assert!(path_bc.exists()); | ||
assert!(path_ir.exists()); | ||
}); | ||
assert!(!path_bc.exists()); | ||
assert!(!path_ir.exists()); | ||
} |