mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
Add require deleted for main body
This commit is contained in:
parent
bad820a08b
commit
825870651f
2 changed files with 10 additions and 0 deletions
|
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue