mity / acutest

Simple header-only C/C++ unit testing facility.
MIT License
346 stars 96 forks source link

Flush stdout and stderr before aborting #63

Closed rittneje closed 2 years ago

rittneje commented 3 years ago

Fixes #62.

Also added an explicit flush each time TEST_CHECK/TEST_ASSERT outputs something. That way the output will still show up even if the binary crashes, as in the following example:

struct foo *my_pointer = NULL;

TEST_CHECK(my_pointer != NULL);

// Oops, this will cause a segfault.
TEST_CHECK(my_pointer->bar > 0);
rittneje commented 3 years ago

ping @mity

rittneje commented 3 years ago

ping @mity

rittneje commented 3 years ago

ping @mity

rittneje commented 2 years ago

This repo seems to be completely abandoned.