From 84be123f791a6392f5897723d8c943bf42613936 Mon Sep 17 00:00:00 2001 From: Collins Abitekaniza Date: Mon, 26 Nov 2018 17:40:50 +0300 Subject: [PATCH] test cargo clean with --release option --- tests/testsuite/clean.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/testsuite/clean.rs b/tests/testsuite/clean.rs index ea62d062b8a..9e03bd11655 100644 --- a/tests/testsuite/clean.rs +++ b/tests/testsuite/clean.rs @@ -117,6 +117,9 @@ fn clean_release() { [FINISHED] release [optimized] target(s) in [..] ", ).run(); + + p.cargo("clean").arg("--release").run(); + assert!(!p.build_dir().join("release").is_dir()); } #[test]