summaryrefslogtreecommitdiff
path: root/lib/interception/tests/interception_linux_test.cc
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-04-27 00:49:14 +0000
committerJulian Lettner <jlettner@apple.com>2019-04-27 00:49:14 +0000
commitdc8b1beec18ce9aa26f17c0366c1d670475b47c4 (patch)
tree63971e73763d1ad95dd1d5cccc2e6dd067f8338e /lib/interception/tests/interception_linux_test.cc
parent807d26a962de04b2d7f831d1f53087f34670611c (diff)
downloadcompiler-rt-dc8b1beec18ce9aa26f17c0366c1d670475b47c4.tar.gz
[NFC][Sanitizer] Remove GetRealFunctionAddress and replace usages
Reviewers: vitalybuka Differential Revision: https://reviews.llvm.org/D61205 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@359362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception/tests/interception_linux_test.cc')
-rw-r--r--lib/interception/tests/interception_linux_test.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/interception/tests/interception_linux_test.cc b/lib/interception/tests/interception_linux_test.cc
index 5a1ca6ecb..3aade45eb 100644
--- a/lib/interception/tests/interception_linux_test.cc
+++ b/lib/interception/tests/interception_linux_test.cc
@@ -33,17 +33,6 @@ INTERCEPTOR(int, isdigit, int d) {
namespace __interception {
-TEST(Interception, GetRealFunctionAddress) {
- uptr malloc_address = 0;
- EXPECT_TRUE(GetRealFunctionAddress("malloc", &malloc_address, 0, 0));
- EXPECT_NE(0U, malloc_address);
-
- uptr dummy_address = 0;
- EXPECT_TRUE(
- GetRealFunctionAddress("dummy_doesnt_exist__", &dummy_address, 0, 0));
- EXPECT_EQ(0U, dummy_address);
-}
-
TEST(Interception, GetFuncAddr) {
EXPECT_NE(GetFuncAddr("malloc"), nullptr);
EXPECT_EQ(GetFuncAddr("does_not_exist"), nullptr);