mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
Auto merge of #13465 - epage:delete, r=weihanglo
test: Remove empty snapshots Inspired by #13461
This commit is contained in:
commit
64ccff290f
@ -13,7 +13,6 @@ use std::fs;
|
||||
use std::os;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::{Command, Output};
|
||||
use std::str;
|
||||
use std::sync::OnceLock;
|
||||
use std::thread::JoinHandle;
|
||||
use std::time::{self, Duration};
|
||||
@ -36,6 +35,7 @@ macro_rules! t {
|
||||
|
||||
pub use snapbox::file;
|
||||
pub use snapbox::path::current_dir;
|
||||
pub use snapbox::str;
|
||||
|
||||
#[track_caller]
|
||||
pub fn panic_error(what: &str, err: impl Into<anyhow::Error>) -> ! {
|
||||
@ -972,8 +972,8 @@ impl Execs {
|
||||
|
||||
fn match_output(&self, code: Option<i32>, stdout: &[u8], stderr: &[u8]) -> Result<()> {
|
||||
self.verify_checks_output(stdout, stderr);
|
||||
let stdout = str::from_utf8(stdout).expect("stdout is not utf8");
|
||||
let stderr = str::from_utf8(stderr).expect("stderr is not utf8");
|
||||
let stdout = std::str::from_utf8(stdout).expect("stdout is not utf8");
|
||||
let stderr = std::str::from_utf8(stderr).expect("stderr is not utf8");
|
||||
let cwd = self.get_cwd();
|
||||
|
||||
match self.expect_exit_code {
|
||||
@ -1211,7 +1211,7 @@ pub trait TestEnv: Sized {
|
||||
.exec_with_output()
|
||||
{
|
||||
Ok(output) => {
|
||||
let s = str::from_utf8(&output.stdout).expect("utf8").trim();
|
||||
let s = std::str::from_utf8(&output.stdout).expect("utf8").trim();
|
||||
let mut p = PathBuf::from(s);
|
||||
p.pop();
|
||||
p
|
||||
|
@ -1,5 +1,6 @@
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
@ -8,5 +9,5 @@ fn case() {
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
.stderr_matches(str![""]);
|
||||
}
|
||||
|
@ -1,5 +1,6 @@
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
@ -9,5 +10,5 @@ fn case() {
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
.stderr_matches(str![""]);
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -34,7 +35,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -16,7 +17,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.failure()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -23,7 +24,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(&cwd)
|
||||
.assert()
|
||||
.failure()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(&cwd)
|
||||
.assert()
|
||||
.failure()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -18,7 +19,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -18,7 +19,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -18,7 +19,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -19,7 +20,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(1)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -17,7 +18,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.failure()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -24,7 +25,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(101)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -24,7 +25,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
use itertools::Itertools;
|
||||
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
use itertools::Itertools;
|
||||
|
||||
@ -31,7 +32,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -24,7 +25,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -24,7 +25,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -24,7 +25,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -24,7 +25,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -24,7 +25,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(101)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(101)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -27,7 +28,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -30,7 +31,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -33,7 +34,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(101)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -27,7 +28,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -27,7 +28,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -67,7 +68,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(101)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -45,7 +46,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -56,7 +57,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -27,7 +28,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.failure() // Fuzzy searching for paths isn't supported at this time
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -46,7 +47,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.failure()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -1,5 +1,6 @@
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
|
||||
#[cargo_test]
|
||||
fn case() {
|
||||
@ -9,5 +10,5 @@ fn case() {
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
.stderr_matches(str![""]);
|
||||
}
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -19,7 +20,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.success()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -29,7 +30,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(1)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -27,7 +28,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.code(101)
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -16,7 +17,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.failure()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
@ -2,6 +2,7 @@ use cargo_test_support::compare::assert_ui;
|
||||
use cargo_test_support::current_dir;
|
||||
use cargo_test_support::file;
|
||||
use cargo_test_support::prelude::*;
|
||||
use cargo_test_support::str;
|
||||
use cargo_test_support::Project;
|
||||
|
||||
#[cargo_test]
|
||||
@ -16,7 +17,7 @@ fn case() {
|
||||
.current_dir(cwd)
|
||||
.assert()
|
||||
.failure()
|
||||
.stdout_matches(file!["stdout.log"])
|
||||
.stdout_matches(str![""])
|
||||
.stderr_matches(file!["stderr.log"]);
|
||||
|
||||
assert_ui().subset_matches(current_dir!().join("out"), &project_root);
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user