Skip to content

Commit 06b510c

Browse files
committedApr 19, 2024
fix build pipeline for ASAN
1 parent 764aa44 commit 06b510c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎test/test-api.c

+2
Original file line numberDiff line numberDiff line change
@@ -295,11 +295,13 @@ int main(void) {
295295
// ---------------------------------------------------
296296
// various
297297
// ---------------------------------------------------
298+
#if !defined(MI_TRACK_ASAN) // realpath may leak with ASAN enabled (as the ASAN allocator intercepts it)
298299
CHECK_BODY("realpath") {
299300
char* s = mi_realpath( ".", NULL );
300301
// printf("realpath: %s\n",s);
301302
mi_free(s);
302303
};
304+
#endif
303305

304306
CHECK("stl_allocator1", test_stl_allocator1());
305307
CHECK("stl_allocator2", test_stl_allocator2());

0 commit comments

Comments
 (0)