[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.

llvm-svn: 359336
This commit is contained in:
Julian Lettner
2019-04-26 18:39:02 +00:00
parent d0e5830017
commit 74967cb4e0

View File

@@ -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'));