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 | 74999eb50f5bff63bd55777414c07ee0d4e51584 (patch) | |
| tree | c4c3bf498642dc36ea5e1a68c4fe843651b031f4 /compiler-rt/lib/interception/tests | |
| parent | e434fc479b69877584b45dd3756db963ebe6eff5 (diff) | |
| download | bcm5719-llvm-74999eb50f5bff63bd55777414c07ee0d4e51584.tar.gz bcm5719-llvm-74999eb50f5bff63bd55777414c07ee0d4e51584.zip | |
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").
llvm-svn: 276951
Diffstat (limited to 'compiler-rt/lib/interception/tests')
| -rw-r--r-- | compiler-rt/lib/interception/tests/interception_linux_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler-rt/lib/interception/tests/interception_linux_test.cc b/compiler-rt/lib/interception/tests/interception_linux_test.cc index 4a1ae785d16..08619d8a341 100644 --- a/compiler-rt/lib/interception/tests/interception_linux_test.cc +++ b/compiler-rt/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( |

