Skip to content

Commit

Permalink
fix exit_code tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad committed May 18, 2016
1 parent 4b624c9 commit db7d59e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_cargo_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ test!(exit_code {
assert_that(p.cargo_process("run"),
execs().with_status(2)
.with_stderr("\
[COMPILING] foo v0.0.1 (file[..])
[RUNNING] `target[..]`
[ERROR] Process didn't exit successfully: `target[..]foo[..]` (exit code: 2)
"));
});
Expand All @@ -139,6 +141,9 @@ test!(exit_code_verbose {
assert_that(p.cargo_process("run").arg("-v"),
execs().with_status(2)
.with_stderr("\
[COMPILING] foo v0.0.1 (file[..])
[RUNNING] `rustc [..]`
[RUNNING] `target[..]`
[ERROR] Process didn't exit successfully: `target[..]foo[..]` (exit code: 2)
"));
});
Expand Down

0 comments on commit db7d59e

Please sign in to comment.