This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
check.h
- From: "Artem B. Bityuckiy" <abityuckiy at yandex dot ru>
- To: newlib at sources dot redhat dot com
- Cc: "Artem B. Bityuckiy" <abitytsky at softminecorp dot com>
- Date: Fri, 30 Apr 2004 18:49:17 +0400
- Subject: check.h
Hello. Sometimes test fails and debug message containing error line
number isn't output. But this isn't happen if add fflush(stdout) into
CHECK macro (newlib/testsuite/include/check.h).
--
Best Regards,
Artem B. Bityuckiy,
St.-Petersburg, Russia.
Index: include/check.h
===================================================================
RCS file: /opt/CVS.repo/CVS.newlib/newlib/newlib/testsuite/include/check.h,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 check.h
*** include/check.h 29 Mar 2004 18:36:02 -0000 1.1.1.1
--- include/check.h 30 Apr 2004 14:45:27 -0000
***************
*** 2,7 ****
--- 2,8 ----
if (!(a)) \
{ \
printf ("Failed " #a " in <%s> at line %d\n", __FILE__, __LINE__); \
+ fflush(stdout); \
abort(); \
} \
}