[compiler-rt] r359336 - [Sanitizer] Fix test

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 26 11:39:02 PDT 2019


Author: yln
Date: Fri Apr 26 11:39:02 2019
New Revision: 359336

URL: http://llvm.org/viewvc/llvm-project?rev=359336&view=rev
Log:
[Sanitizer] Fix test

I broke the build, panicked and applied the wrong fix in my previous
commit. The ASSERT was obsolete, but not the call INTERCEPT_FUNCTION.

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=359336&r1=359335&r2=359336&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/tests/interception_linux_test.cc (original)
+++ compiler-rt/trunk/lib/interception/tests/interception_linux_test.cc Fri Apr 26 11:39:02 2019
@@ -50,6 +50,8 @@ TEST(Interception, GetFuncAddr) {
 }
 
 TEST(Interception, Basic) {
+  INTERCEPT_FUNCTION(isdigit);
+
   // After interception, the counter should be incremented.
   InterceptorFunctionCalled = 0;
   EXPECT_NE(0, isdigit('1'));




More information about the llvm-commits mailing list