[asan] fix a test on Mac