# tests that are meant to abort()

**URL:** https://discourse.cmake.org/t/tests-that-are-meant-to-abort/537
**Category:** Code
**Created:** [January 24, 2020, 11:01pm UTC](https://discourse.cmake.org/t/tests-that-are-meant-to-abort/537 "2020-01-24T23:01:07Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![perlun](https://discourse.cmake.org/user_avatar/discourse.cmake.org/perlun/32/3744_2.png) [@perlun](https://discourse.cmake.org/u/perlun)
#### Post date: [August 22, 2023, 6:57pm UTC](https://discourse.cmake.org/t/tests-that-are-meant-to-abort/537/13 "2023-08-22T18:57:00Z")

</div>

> [@craig.scott](#):
>
> If I had to guess, I’d say what is happening in your case is that your standard output isn’t getting flushed, so you’re losing that output (which would have nothing to do with ctest). Note that `exit()` does flush all output C streams, whereas I don’t believe `abort()` does.

Thanks for this - you’re of course right about not hijacking threads as well. 🙈 I moved this to [a separate discussion](https://discourse.cmake.org/t/why-does-my-test-calling-abort-not-output-anything/8803) now and posted a reply there. 👍

---

_[View the full topic](https://discourse.cmake.org/t/tests-that-are-meant-to-abort/537)._
