From fca6dbd9afac228b91749a5ab5c2ba2d8bfcb6ef Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Wed, 27 Apr 2022 23:43:33 -0500 Subject: Add tests for fixed bugs --- src/bootstrap/builder.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/bootstrap/builder.rs') diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index c3ee30b65fe..3b20cc4ca39 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -348,7 +348,11 @@ impl StepDescription { eprintln!( "note: if you are adding a new Step to bootstrap itself, make sure you register it with `describe!`" ); + #[cfg(not(test))] std::process::exit(1); + #[cfg(test)] + // so we can use #[should_panic] + panic!() } } } -- cgit 1.4.1-3-g733a5