mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-10-21 11:30:09 +00:00
feat: add tests for #842
Add some tests for setting NULL to deallocated pointers releated to #842 and #833
This commit is contained in:
1 parent
542fb0eadd
commit
5b502cdbfb
2 files changed
+19
No files matched your search
@@ -62,6 +62,7 @@ if(ENABLE_CJSON_TEST)
|
||||
|
||||
option(ENABLE_VALGRIND OFF "Enable the valgrind memory checker for the tests.")
|
||||
if (ENABLE_VALGRIND)
|
||||
add_compile_definitions(ENABLE_VALGRIND)
|
||||
find_program(MEMORYCHECK_COMMAND valgrind)
|
||||
if ("${MEMORYCHECK_COMMAND}" MATCHES "MEMORYCHECK_COMMAND-NOTFOUND")
|
||||
message(WARNING "Valgrind couldn't be found.")
|
||||
|
||||
Reference in new issue
Block a user