mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[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:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user