Add require deleted for main body

This commit is contained in:
nora 2023-04-04 13:45:14 +02:00
parent bad820a08b
commit 825870651f
2 changed files with 10 additions and 0 deletions

View file

@ -9,4 +9,5 @@ fn user(mut map: HashMap<(), ()>) {
fn main() { fn main() {
let map = HashMap::new(); let map = HashMap::new();
user(map); user(map);
"~REQUIRE-DELETED main-body";
} }

View file

@ -16,6 +16,15 @@ use tempfile::TempDir;
#[test] #[test]
#[cfg_attr(not(unix), ignore = "FIXME: Make this not cursed.")] #[cfg_attr(not(unix), ignore = "FIXME: Make this not cursed.")]
fn full_tests() -> Result<()> { fn full_tests() -> Result<()> {
let exit = Command::new("cargo")
.arg("build")
.spawn()
.context("spawn: cargo build")?
.wait()
.context("wait: cargo build")?;
ensure!(exit.success(), "cargo build failed");
let path = Path::new(file!()) let path = Path::new(file!())
.canonicalize()? .canonicalize()?
.parent() .parent()