I think this is because EXIT_RUNTIME causes the whole process to exit before the functions registered with addOnPostRun get a chance to run.
Because LSan and ASan set EXIT_RUNTIME by default this means addOnPostRun doesn't work in lsan and asan test suites by default.
I think this is because EXIT_RUNTIME causes the whole process to exit before the functions registered with
addOnPostRunget a chance to run.Because LSan and ASan set EXIT_RUNTIME by default this means
addOnPostRundoesn't work inlsanandasantest suites by default.