aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-10-03 16:01:26 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-10-03 16:01:26 +0200
commiteb40d208ef372acec5a1db82516a072f0afea4c9 (patch)
treeb3400ba46e4a5bce5b0b8404c9dd3e397f05c720
parent2175585668f3573d0d41ec73c5b538bf3870894e (diff)
downloadmtest-eb40d208ef372acec5a1db82516a072f0afea4c9.tar.gz
mtest-eb40d208ef372acec5a1db82516a072f0afea4c9.tar.bz2
mtest-eb40d208ef372acec5a1db82516a072f0afea4c9.zip
print asserts to stderr instead of stdout
-rw-r--r--mtest.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/mtest.h b/mtest.h
index 4f1c3cf..2838e83 100644
--- a/mtest.h
+++ b/mtest.h
@@ -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; \