summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception/tests
diff options
context:
space:
mode:
authorEtienne Bergeron <etienneb@google.com>2016-07-28 01:35:32 +0000
committerEtienne Bergeron <etienneb@google.com>2016-07-28 01:35:32 +0000
commit74999eb50f5bff63bd55777414c07ee0d4e51584 (patch)
treec4c3bf498642dc36ea5e1a68c4fe843651b031f4 /compiler-rt/lib/interception/tests
parente434fc479b69877584b45dd3756db963ebe6eff5 (diff)
downloadbcm5719-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.cc3
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(
OpenPOWER on IntegriCloud