summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-04-26 18:39:02 +0000
committerJulian Lettner <jlettner@apple.com>2019-04-26 18:39:02 +0000
commit74967cb4e04c9899601b8c84901e99e797d49135 (patch)
treee5f44f8e327ab2c9c63c7bb5f09d0e0581adc858 /compiler-rt/lib/interception
parentd0e583001720a2ee4b9cad5296a4590def503328 (diff)
downloadbcm5719-llvm-74967cb4e04c9899601b8c84901e99e797d49135.tar.gz
bcm5719-llvm-74967cb4e04c9899601b8c84901e99e797d49135.zip
[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
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r--compiler-rt/lib/interception/tests/interception_linux_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/tests/interception_linux_test.cc b/compiler-rt/lib/interception/tests/interception_linux_test.cc
index bcd2afbeb04..5a1ca6ecbf5 100644
--- a/compiler-rt/lib/interception/tests/interception_linux_test.cc
+++ b/compiler-rt/lib/interception/tests/interception_linux_test.cc
@@ -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'));
OpenPOWER on IntegriCloud