diff options
| author | Julian Lettner <jlettner@apple.com> | 2019-04-25 17:46:29 +0000 |
|---|---|---|
| committer | Julian Lettner <jlettner@apple.com> | 2019-04-25 17:46:29 +0000 |
| commit | 8b36610bfa506206149815a9e6448528e9f60b51 (patch) | |
| tree | a7490d782fe6878d7f9d34db494afe0232a548f7 /compiler-rt/lib/interception/tests | |
| parent | c19f4f8069722f6804086d4438a0254104242c46 (diff) | |
| download | bcm5719-llvm-8b36610bfa506206149815a9e6448528e9f60b51.tar.gz bcm5719-llvm-8b36610bfa506206149815a9e6448528e9f60b51.zip | |
[NFC][Sanitizer] Extract GetFuncAddr from GetRealFunctionAddress
Summary:
Hopefully, this will enable cleanup/removal of GetRealFunctionAddress in
follow-up commits.
Subscribers: #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D61110
llvm-svn: 359213
Diffstat (limited to 'compiler-rt/lib/interception/tests')
| -rw-r--r-- | compiler-rt/lib/interception/tests/interception_linux_test.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/tests/interception_linux_test.cc b/compiler-rt/lib/interception/tests/interception_linux_test.cc index 3255b4152d3..8ceab0bbde7 100644 --- a/compiler-rt/lib/interception/tests/interception_linux_test.cc +++ b/compiler-rt/lib/interception/tests/interception_linux_test.cc @@ -44,6 +44,11 @@ TEST(Interception, GetRealFunctionAddress) { EXPECT_EQ(0U, dummy_address); } +TEST(Interception, GetFuncAddr) { + EXPECT_NE(GetFuncAddr("malloc"), nullptr); + EXPECT_EQ(GetFuncAddr("does_not_exist"), nullptr); +} + TEST(Interception, Basic) { ASSERT_TRUE(INTERCEPT_FUNCTION(isdigit)); |

