summaryrefslogtreecommitdiff
path: root/rust/binary_test.go
diff options
context:
space:
mode:
authorJeff Vander Stoep <jeffv@google.com>2021-01-26 14:35:38 +0100
committerIvan Lozano <ivanlozano@google.com>2021-01-26 09:09:06 -0500
commitbf7a902951122e476812d9a2153ef4b14b57ca3a (patch)
treebc5606f1cad0eec7af36af21a41c7599b18c89ef /rust/binary_test.go
parent700730e69ee8c64f53f7e7007e54eb1f7bbe3d00 (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.go3
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)
}