diff options
Diffstat (limited to 'src/bootstrap/tool.rs')
| -rw-r--r-- | src/bootstrap/tool.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bootstrap/tool.rs b/src/bootstrap/tool.rs index 2bb46cc5171..362ec0c3b50 100644 --- a/src/bootstrap/tool.rs +++ b/src/bootstrap/tool.rs @@ -199,7 +199,11 @@ impl Step for ToolBuild { if !is_expected { if !is_ext_tool { - exit(1); + if cfg!(test) { + panic!("unexpected failure -- would have hard exited"); + } else { + exit(1); + } } else { return None; } |
