Skip to content

Commit a015485

Browse files
Run tests with ASan
1 parent fec1044 commit a015485

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CXX = clang++
2-
CXXFLAGS = -g -std=c++11 -I. -Wall -Wextra -Wtype-limits -Wconversion -Wshadow $(EXTRA_CXXFLAGS) # -fno-exceptions -DCPPHTTPLIB_NO_EXCEPTIONS -fsanitize=address
2+
CXXFLAGS = -g -std=c++11 -I. -Wall -Wextra -Wtype-limits -Wconversion -Wshadow -fsanitize=address $(EXTRA_CXXFLAGS) # -fno-exceptions -DCPPHTTPLIB_NO_EXCEPTIONS -fsanitize=address
33

44
PREFIX ?= $(shell brew --prefix)
55

test/test.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8485,8 +8485,8 @@ TEST(ClientInThreadTest, Issue2068) {
84858485
#endif
84868486
#endif
84878487

8488-
// No death tests on Windows
8489-
#ifndef _WIN32
8488+
// No death tests on Windows and unreliable without ASan
8489+
#if ASAN_ENABLED && !defined(_WIN32)
84908490
bool KilledByAbortOrSegfault(int exit_status) {
84918491
return
84928492
#if ASAN_ENABLED

0 commit comments

Comments
 (0)