[compiler-rt] r276951 - Fix broken build bot
Etienne Bergeron via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 27 18:35:33 PDT 2016
Author: etienneb
Date: Wed Jul 27 20:35:32 2016
New Revision: 276951
URL: http://llvm.org/viewvc/llvm-project?rev=276951&view=rev
Log:
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").
Modified:
compiler-rt/trunk/lib/interception/tests/interception_linux_test.cc
Modified: compiler-rt/trunk/lib/interception/tests/interception_linux_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/tests/interception_linux_test.cc?rev=276951&r1=276950&r2=276951&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/tests/interception_linux_test.cc (original)
+++ compiler-rt/trunk/lib/interception/tests/interception_linux_test.cc Wed Jul 27 20:35:32 2016
@@ -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(
More information about the llvm-commits
mailing list