diff options
author | Etienne Bergeron <etienneb@google.com> | 2016-07-28 01:35:32 +0000 |
---|---|---|
committer | Etienne Bergeron <etienneb@google.com> | 2016-07-28 01:35:32 +0000 |
commit | 9eac4898b92fc03078739b04b8e0625902105c82 (patch) | |
tree | a9a8ff05b7f054f355b02bcaf0170f6105a99030 /lib/interception | |
parent | be0a85814add5c9b64daeceb0042cc81a0ebd487 (diff) |
Fix broken build bot
The address resolution is ussing RTLD_NEXT and not RTLD_DEFAULT.
Which means &func may not be equivalent to dlsym("func").
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276951 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/interception')
-rw-r--r-- | lib/interception/tests/interception_linux_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/interception/tests/interception_linux_test.cc b/lib/interception/tests/interception_linux_test.cc index 4a1ae785d..08619d8a3 100644 --- a/lib/interception/tests/interception_linux_test.cc +++ b/lib/interception/tests/interception_linux_test.cc @@ -31,10 +31,9 @@ INTERCEPTOR(int, isdigit, int d) { namespace __interception { TEST(Interception, GetRealFunctionAddress) { - uptr expected_malloc_address = (uptr)(void*)&malloc; uptr malloc_address = 0; EXPECT_TRUE(GetRealFunctionAddress("malloc", &malloc_address, 0, 0)); - EXPECT_EQ(expected_malloc_address, malloc_address); + EXPECT_NE(0U, malloc_address); uptr dummy_address = 0; EXPECT_TRUE( |