commit | bf7a902951122e476812d9a2153ef4b14b57ca3a | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Tue Jan 26 14:35:38 2021 +0100 |
committer | Ivan Lozano <ivanlozano@google.com> | Tue Jan 26 09:09:06 2021 -0500 |
tree | bc5606f1cad0eec7af36af21a41c7599b18c89ef | |
parent | 700730e69ee8c64f53f7e7007e54eb1f7bbe3d00 [diff] [blame] |
Rust: abort on panic Test: build (test included in build) Bug: 162266455 Change-Id: I7f53956d3a35f923d0282d511d6360051f945a88
diff --git a/rust/test.go b/rust/test.go index 408e03a..35e04ff 100644 --- a/rust/test.go +++ b/rust/test.go
@@ -120,6 +120,9 @@ if test.testHarness() { flags.RustFlags = append(flags.RustFlags, "--test") } + if ctx.Device() { + flags.RustFlags = append(flags.RustFlags, "-Z panic_abort_tests") + } return flags }