about summary refs log tree commit diff
path: root/src/bootstrap/tool.rs
diff options
context:
space:
mode:
authorMark Simulacrum <mark.simulacrum@gmail.com>2018-03-09 19:23:35 -0700
committerMark Simulacrum <mark.simulacrum@gmail.com>2018-04-03 11:39:16 -0600
commitcd33d3a0e49f67fdeebb8e19593f10b95e5719ee (patch)
tree990fab5b642a8f7a5f235ccbbe73d44b3844927e /src/bootstrap/tool.rs
parente7342b8f4233b67093c62c4044273185312aac59 (diff)
downloadrust-cd33d3a0e49f67fdeebb8e19593f10b95e5719ee.tar.gz
rust-cd33d3a0e49f67fdeebb8e19593f10b95e5719ee.zip
Stub out various functions during testing
Diffstat (limited to 'src/bootstrap/tool.rs')
-rw-r--r--src/bootstrap/tool.rs6
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;
             }