Skip to content

Commit 2c3bd84

Browse files
committed
Add tests [7] --filter=[core] --asan
1 parent e8363f6 commit 2c3bd84

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

core-tests/run.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ __SWOOLE_DIR__=$(cd "$(dirname "${__DIR__}")" || exit;pwd)
44
CMAKE_ARGS="-D swoole_dir=${__SWOOLE_DIR__} -D enable_thread=1"
55

66
if [ "${SWOOLE_ENABLE_ASAN}" = 1 ]; then
7+
export ASAN_OPTIONS=detect_leaks=0
78
CMAKE_ARGS="${CMAKE_ARGS} -D enable_asan=1"
89
fi
910

core-tests/src/core/string.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,4 +362,6 @@ TEST(string, append_number) {
362362

363363
str->print(true);
364364
str->print(false);
365+
366+
delete str;
365367
}

0 commit comments

Comments
 (0)