[GWP-ASan] Use functions in backtrace test, not line numbers.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Thu, 26 Mar 2020 17:09:57 +0000 (10:09 -0700)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Thu, 26 Mar 2020 17:10:24 +0000 (10:10 -0700)
commit1216f4c0ea0c232d545ce3ab8f858c696e085d47
treeb6e59cbefa7d3158a1da0998d0bb52ca25e984f7
parent17e4c38739aa78638c783dac6c149858d1c0a550
[GWP-ASan] Use functions in backtrace test, not line numbers.

Summary:
There's no unwinding functionality on Android that allows for line
numbers to be retrieved in-process. As a result, we can't have
this backtrace test run on Android.

Cleanup the test to use optnone functions instead, which is more stable
than line numbers anyway.

Reviewers: eugenis

Reviewed By: eugenis

Subscribers: #sanitizers, morehouse, cferris

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D76807
compiler-rt/lib/gwp_asan/tests/backtrace.cpp