fix build pipeline for ASAN

This commit is contained in:
Daan 2024-04-19 09:41:24 -07:00
parent 764aa44598
commit 06b510c42d

View File

@ -295,11 +295,13 @@ int main(void) {
// --------------------------------------------------- // ---------------------------------------------------
// various // various
// --------------------------------------------------- // ---------------------------------------------------
#if !defined(MI_TRACK_ASAN) // realpath may leak with ASAN enabled (as the ASAN allocator intercepts it)
CHECK_BODY("realpath") { CHECK_BODY("realpath") {
char* s = mi_realpath( ".", NULL ); char* s = mi_realpath( ".", NULL );
// printf("realpath: %s\n",s); // printf("realpath: %s\n",s);
mi_free(s); mi_free(s);
}; };
#endif
CHECK("stl_allocator1", test_stl_allocator1()); CHECK("stl_allocator1", test_stl_allocator1());
CHECK("stl_allocator2", test_stl_allocator2()); CHECK("stl_allocator2", test_stl_allocator2());