42 #include "QtTest/private/qabstracttestlogger_p.h" 43 #include "QtTest/private/qtestlog_p.h" 44 #include "QtTest/qtestassert.h" 46 #include "QtCore/qbytearray.h" 75 #if defined(Q_OS_WIN) || defined(Q_OS_INTEGRITY) 93 #if defined(_MSC_VER) && _MSC_VER >= 1400 && !defined(Q_OS_WINCE) 99 printf(
"Unable to open file for logging: %s", out);
114 User::AfterHighRes(2*1000*1000);
131 static const int MAXSIZE = 1024*1024*2;
135 int size = str->
size();
141 va_start(ap, format);
144 str->
data()[size - 1] =
'\0';
145 if (res >= 0 && res < size) {
152 if (size > MAXSIZE) {
155 if (!str->
reset(size))
void filter_unprintable(char *str)
static void outputString(const char *msg)
#define QT_END_NAMESPACE
This macro expands to.
int qt_asprintf(QTestCharBuffer *str, const char *format,...)
static const char * outputFileName()
virtual void stopLogging()
#define QT_BEGIN_NAMESPACE
This macro expands to.
Q_CORE_EXPORT int qvsnprintf(char *str, size_t n, const char *fmt, va_list ap)
#define QTEST_ASSERT(cond)
virtual void startLogging()
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...
static bool isTtyOutput()