diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-10-03 16:01:26 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-10-03 16:01:26 +0200 |
commit | eb40d208ef372acec5a1db82516a072f0afea4c9 (patch) | |
tree | b3400ba46e4a5bce5b0b8404c9dd3e397f05c720 | |
parent | 2175585668f3573d0d41ec73c5b538bf3870894e (diff) | |
download | mtest-eb40d208ef372acec5a1db82516a072f0afea4c9.tar.gz mtest-eb40d208ef372acec5a1db82516a072f0afea4c9.tar.bz2 mtest-eb40d208ef372acec5a1db82516a072f0afea4c9.zip |
print asserts to stderr instead of stdout
-rw-r--r-- | mtest.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,7 @@ Author: Michał Łyszczek <michal.lyszczek@bofc.pl> ========================================================================== __________________________________________________________ - / mtest version v1.1.3 \ + / mtest version v1.1.4 \ | | | Simple test framework that uses TAP output format | \ http://testanything.org / @@ -126,7 +126,7 @@ ++mt_total_checks; \ if (!(e)) \ { \ - fprintf(stdout, "# assert [%s:%d] %s, %s\n", \ + fprintf(stderr, "# assert [%s:%d] %s, %s\n", \ __FILE__, __LINE__, curr_test, #e); \ mt_test_status = -1; \ ++mt_checks_failed; \ @@ -144,7 +144,7 @@ ++mt_total_checks; \ if (!(e)) \ { \ - fprintf(stdout, "# assert [%s:%d] %s, %s\n", \ + fprintf(stderr, "# assert [%s:%d] %s, %s\n", \ __FILE__, __LINE__, curr_test, #e); \ mt_test_status = -1; \ ++mt_checks_failed; \ |