From bf7a902951122e476812d9a2153ef4b14b57ca3a Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Tue, 26 Jan 2021 14:35:38 +0100 Subject: Rust: abort on panic Test: build (test included in build) Bug: 162266455 Change-Id: I7f53956d3a35f923d0282d511d6360051f945a88 --- rust/binary_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rust/binary_test.go') 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) } -- cgit v1.2.3-59-g8ed1b