mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-27 13:33:18 +08:00
fix build pipeline for ASAN
This commit is contained in:
parent
764aa44598
commit
06b510c42d
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user