Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 4091b50

Browse files
authored
Merge pull request #1229 from pervazea/mem_leaks
Suppress Postgres parser mem leaks
2 parents 54365cb + 58abd9c commit 4091b50

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

test/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,13 @@ foreach(test_src ${test_srcs} )
9595

9696
# add test
9797
add_test(${test_name} ${CMAKE_BINARY_DIR}/test/${test_name} --gtest_color=yes
98-
--gtest_output=xml:${CMAKE_BINARY_DIR}/test/${test_name}.xml)
99-
98+
--gtest_output=xml:${CMAKE_BINARY_DIR}/test/${test_name}.xml)
99+
100+
# leak suppression / whitelist
101+
set_property(TEST ${test_name}
102+
PROPERTY ENVIRONMENT
103+
"LSAN_OPTIONS=suppressions=${PROJECT_SOURCE_DIR}/test/leak_suppr.txt")
104+
100105
endforeach(test_src ${test_srcs})
101106

102107
##################################################################################

test/leak_suppr.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
# suppress the leak in the pg_query parser memory management
3+
# see #1194
4+
#
5+
leak:src_backend_utils_mmgr_mcxt.c

0 commit comments

Comments
 (0)