diff --git a/tests/testsuite/build_script.rs b/tests/testsuite/build_script.rs index ddaa9a5edd5..ab725d0b930 100644 --- a/tests/testsuite/build_script.rs +++ b/tests/testsuite/build_script.rs @@ -37,7 +37,7 @@ fn custom_build_script_failed() { [ERROR] failed to run custom build command for `foo v0.5.0 ([CWD])` Caused by: - process didn't exit successfully: `[..]/build-script-build` (exit code: 101)", + process didn't exit successfully: `[..]/build-script-build` (exit [..]: 101)", ) .run(); } diff --git a/tests/testsuite/run.rs b/tests/testsuite/run.rs index 5b2f274cda3..106e2259fc4 100644 --- a/tests/testsuite/run.rs +++ b/tests/testsuite/run.rs @@ -118,7 +118,7 @@ fn exit_code() { ); if !cfg!(unix) { output.push_str( - "[ERROR] process didn't exit successfully: `target[..]foo[..]` (exit code: 2)", + "[ERROR] process didn't exit successfully: `target[..]foo[..]` (exit [..]: 2)", ); } p.cargo("run").with_status(2).with_stderr(output).run(); @@ -140,7 +140,7 @@ fn exit_code_verbose() { ); if !cfg!(unix) { output.push_str( - "[ERROR] process didn't exit successfully: `target[..]foo[..]` (exit code: 2)", + "[ERROR] process didn't exit successfully: `target[..]foo[..]` (exit [..]: 2)", ); }