From 1b46c2bc1fb30c1882cfbc1c20be005ce18578f1 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Thu, 21 Nov 2013 23:18:03 +0000 Subject: Implement a bunch of custom glibc wrappers & corresponding tests. - Introduce several new custom glibc wrappers - Implement some of the not yet implemented wrappers - Refactor and extend the tests - Add script to make sure all declare custom glibc wrappers are implemented & tested. Patch by Lorenzo Martignoni! Differential Revision: http://llvm-reviews.chandlerc.com/D2234 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195381 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/scripts/check_lint.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/sanitizer_common/scripts') diff --git a/lib/sanitizer_common/scripts/check_lint.sh b/lib/sanitizer_common/scripts/check_lint.sh index 5f1bd4ba4..ece788f63 100755 --- a/lib/sanitizer_common/scripts/check_lint.sh +++ b/lib/sanitizer_common/scripts/check_lint.sh @@ -27,6 +27,7 @@ TSAN_LIT_TEST_LINT_FILTER=${TSAN_TEST_LINT_FILTER},-whitespace/line_length MSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER} LSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER} LSAN_LIT_TEST_LINT_FILTER=${LSAN_RTL_LINT_FILTER},-whitespace/line_length +DFSAN_RTL_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int,-runtime/printf,-runtime/references COMMON_RTL_INC_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int,-runtime/sizeof,-runtime/printf SANITIZER_INCLUDES_LINT_FILTER=${COMMON_LINT_FILTER},-runtime/int MKTEMP="mktemp -q /tmp/tmp.XXXXXXXXXX" @@ -90,6 +91,13 @@ run_lint ${LSAN_RTL_LINT_FILTER} ${LSAN_RTL}/*.{cc,h} \ ${LSAN_RTL}/tests/*.{cc,h} & run_lint ${LSAN_LIT_TEST_LINT_FILTER} ${LSAN_RTL}/lit_tests/*/*.cc & +# DFSan +DFSAN_RTL=${COMPILER_RT}/lib/dfsan +run_lint ${DFSAN_RTL_LINT_FILTER} ${DFSAN_RTL}/*.{cc,h} & +# Check that all the custom functions in the ABI list are wrapped and that all +# wrappers are tested. +${DFSAN_RTL}/scripts/check_custom_wrappers.sh >> ${ERROR_LOG} + # Misc files FILES=${COMMON_RTL}/*.inc TMPFILES="" -- cgit v1.2.3