This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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(); \
      } \
  }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]