diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2021-01-26 14:35:38 +0100 |
---|---|---|
committer | Ivan Lozano <ivanlozano@google.com> | 2021-01-26 09:09:06 -0500 |
commit | bf7a902951122e476812d9a2153ef4b14b57ca3a (patch) | |
tree | bc5606f1cad0eec7af36af21a41c7599b18c89ef /rust/binary_test.go | |
parent | 700730e69ee8c64f53f7e7007e54eb1f7bbe3d00 (diff) |
Rust: abort on panic
Test: build (test included in build)
Bug: 162266455
Change-Id: I7f53956d3a35f923d0282d511d6360051f945a88
Diffstat (limited to 'rust/binary_test.go')
-rw-r--r-- | rust/binary_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rust/binary_test.go b/rust/binary_test.go index b44a5bc71..86f50d3e4 100644 --- a/rust/binary_test.go +++ b/rust/binary_test.go @@ -130,6 +130,9 @@ func TestStaticBinaryFlags(t *testing.T) { if !strings.Contains(flags, "-C relocation-model=static") { t.Errorf("static binary missing '-C relocation-model=static' in rustcFlags, found: %#v", flags) } + if !strings.Contains(flags, "-C panic=abort") { + t.Errorf("static binary missing '-C panic=abort' in rustcFlags, found: %#v", flags) + } if !strings.Contains(linkFlags, "-static") { t.Errorf("static binary missing '-static' in linkFlags, found: %#v", flags) } |