diff options
| author | Joshua Nelson <jnelson@cloudflare.com> | 2022-04-27 23:43:33 -0500 |
|---|---|---|
| committer | Joshua Nelson <jnelson@cloudflare.com> | 2022-06-18 09:58:29 -0500 |
| commit | fca6dbd9afac228b91749a5ab5c2ba2d8bfcb6ef (patch) | |
| tree | b034277adea2da14e21c6bb7624dc15c4fe4b2ad /src/bootstrap/builder.rs | |
| parent | 0da0a2196d2d7b37bd5e07ce18b03568e2711f39 (diff) | |
| download | rust-fca6dbd9afac228b91749a5ab5c2ba2d8bfcb6ef.tar.gz rust-fca6dbd9afac228b91749a5ab5c2ba2d8bfcb6ef.zip | |
Add tests for fixed bugs
Diffstat (limited to 'src/bootstrap/builder.rs')
| -rw-r--r-- | src/bootstrap/builder.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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!() } } } |
