42 #include "QtTest/qtestassert.h" 44 #include "QtTest/private/qtestlog_p.h" 45 #include "QtTest/private/qtestresult_p.h" 46 #include "QtTest/private/qabstracttestlogger_p.h" 47 #include "QtTest/private/qplaintestlogger_p.h" 48 #include "QtTest/private/qxmltestlogger_p.h" 49 #include <QtCore/qatomic.h> 50 #include <QtCore/qbytearray.h> 102 if (list->
type == type && strcmp(msg, list->
msg) == 0) {
107 ignoreResultList = list->
next;
109 ignoreResultList = 0;
140 if (!counter.
deref()) {
142 "Maximum amount of warnings exceeded. Use -maxwarnings to override.");
290 const char *file,
int line)
virtual void registerRandomSeed(unsigned int seed)=0
static void setMaxWarnings(int max)
static int verboseLevel()
static QTestLog::LogMode logMode
virtual void addIncident(IncidentTypes type, const char *description, const char *file=0, int line=0)=0
static void addPass(const char *msg)
static void addBenchmarkResult(const QBenchmarkResult &result)
#define QT_END_NAMESPACE
This macro expands to.
SkipMode
This enum describes the modes for skipping tests during execution of the test data.
static IgnoreResultList * ignoreResultList
static void addFailure(const char *message, const char *file, int line)
void(* QtMsgHandler)(QtMsgType, const char *)
#define Q_BASIC_ATOMIC_INITIALIZER(a)
static void redirectOutput(const char *fileName)
QtMsgType
This enum describes the messages that can be sent to a message handler (QtMsgHandler).
static const char * outputFileName()
static void clearList(IgnoreResultList *&list)
static void enterTestFunction(const char *function)
static int unhandledIgnoreMessages()
virtual void stopLogging()
static void printUnhandledIgnoreMessages()
static void addSkip(const char *msg, QTest::SkipMode mode, const char *file, int line)
static void warn(const char *msg)
static void addFail(const char *msg, const char *file, int line)
#define QT_BEGIN_NAMESPACE
This macro expands to.
static QTestLog::FlushMode flushMode
static void startLogging()
static void setFlushMode(FlushMode mode)
static QAbstractTestLogger * testLogger
int Q_TESTLIB_EXPORT qt_snprintf(char *str, int size, const char *format,...)
static bool handleIgnoredMessage(QtMsgType type, const char *msg)
static void stopLogging()
static QtMsgHandler oldMessageHandler
QtMsgHandler qInstallMsgHandler(QtMsgHandler h)
Q_CORE_EXPORT char * qstrdup(const char *)
Q_TESTLIB_EXPORT bool printAvailableTags
static void messageHandler(QtMsgType type, const char *msg)
#define QTEST_ASSERT(cond)
static const char * outFile
static void addXFail(const char *msg, const char *file, int line)
IgnoreResultList(QtMsgType tp, const char *message)
virtual void startLogging()
static void setVerboseLevel(int level)
static void info(const char *msg, const char *file, int line)
virtual void addMessage(MessageTypes type, const char *message, const char *file=0, int line=0)=0
static QString fileName(const QString &fileUrl)
virtual void enterTestFunction(const char *function)=0
The QTest namespace contains all the functions and declarations that are related to the QTestLib tool...
virtual void addBenchmarkResult(const QBenchmarkResult &result)=0
static void addXPass(const char *msg, const char *file, int line)
static void setLogMode(LogMode mode)
static void addIgnoreMessage(QtMsgType type, const char *msg)
static void leaveTestFunction()
virtual void leaveTestFunction()=0