Skip to content

Commit 4b822a4

Browse files
committed
Attempt to suppress valgrind wcslen error
1 parent 6e2e5c7 commit 4b822a4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/unittest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ add_test(NAME unittest
7979
if(NOT MSVC)
8080
# Not running SIMD.* unit test cases for Valgrind
8181
add_test(NAME valgrind_unittest
82-
COMMAND valgrind --leak-check=full --error-exitcode=1 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest --gtest_filter=-SIMD.*
82+
COMMAND valgrind --suppressions=${CMAKE_SOURCE_DIR}/test/valgrind.supp --leak-check=full --error-exitcode=1 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest --gtest_filter=-SIMD.*
8383
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
8484

8585
if(CMAKE_BUILD_TYPE STREQUAL "Debug")

test/valgrind.supp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
Suppress wcslen valgrind report
3+
Memcheck:Addr8
4+
fun:__wcslen_sse2
5+
}

0 commit comments

Comments
 (0)