Spacing-only change: fix indents and spacing in qtestcase.cpp
Separated from other clean-ups to avoid inanity 'bot complaints. Change-Id: Ia33f87da224dba7c50bbf14beb642825dc46fe90 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
f3184770e2
commit
ec59ae6189
@ -376,7 +376,7 @@ static bool noCrashHandler = false;
|
|||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
Invoke a method of the object without generating warning if the method does not exist
|
Invoke a method of the object without generating warning if the method does not exist
|
||||||
*/
|
*/
|
||||||
static void invokeMethod(QObject *obj, const char *methodName)
|
static void invokeMethod(QObject *obj, const char *methodName)
|
||||||
{
|
{
|
||||||
const QMetaObject *metaObject = obj->metaObject();
|
const QMetaObject *metaObject = obj->metaObject();
|
||||||
@ -617,7 +617,7 @@ Q_TESTLIB_EXPORT void qtest_qParseArgs(int argc, const char *const argv[], bool
|
|||||||
"%s", argv[0], testOptions);
|
"%s", argv[0], testOptions);
|
||||||
|
|
||||||
if (qml) {
|
if (qml) {
|
||||||
printf ("\n"
|
printf("\n"
|
||||||
" QmlTest options:\n"
|
" QmlTest options:\n"
|
||||||
" -import dir : Specify an import directory.\n"
|
" -import dir : Specify an import directory.\n"
|
||||||
" -plugins dir : Specify a directory where to search for plugins.\n"
|
" -plugins dir : Specify a directory where to search for plugins.\n"
|
||||||
@ -1147,7 +1147,7 @@ public:
|
|||||||
|
|
||||||
If the function was successfully called, true is returned, otherwise
|
If the function was successfully called, true is returned, otherwise
|
||||||
false.
|
false.
|
||||||
*/
|
*/
|
||||||
bool TestMethods::invokeTest(int index, const char *data, WatchDog *watchDog) const
|
bool TestMethods::invokeTest(int index, const char *data, WatchDog *watchDog) const
|
||||||
{
|
{
|
||||||
QBenchmarkTestMethodData benchmarkData;
|
QBenchmarkTestMethodData benchmarkData;
|
||||||
@ -1268,7 +1268,7 @@ void *fetchData(QTestData *data, const char *tagName, int typeId)
|
|||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \internal
|
* \internal
|
||||||
*/
|
*/
|
||||||
char *formatString(const char *prefix, const char *suffix, size_t numArguments, ...)
|
char *formatString(const char *prefix, const char *suffix, size_t numArguments, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
@ -1302,7 +1302,7 @@ char *formatString(const char *prefix, const char *suffix, size_t numArguments,
|
|||||||
to operator delete[].
|
to operator delete[].
|
||||||
|
|
||||||
\a length is the length of the string \a ba.
|
\a length is the length of the string \a ba.
|
||||||
*/
|
*/
|
||||||
char *toHexRepresentation(const char *ba, int length)
|
char *toHexRepresentation(const char *ba, int length)
|
||||||
{
|
{
|
||||||
if (length == 0)
|
if (length == 0)
|
||||||
@ -1931,7 +1931,7 @@ int QTest::qExec(QObject *testObject, int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void QTest::qInit(QObject *testObject, int argc, char **argv)
|
void QTest::qInit(QObject *testObject, int argc, char **argv)
|
||||||
{
|
{
|
||||||
initEnvironment();
|
initEnvironment();
|
||||||
@ -1977,7 +1977,7 @@ void QTest::qInit(QObject *testObject, int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
int QTest::qRun()
|
int QTest::qRun()
|
||||||
{
|
{
|
||||||
QTEST_ASSERT(currentTestObject);
|
QTEST_ASSERT(currentTestObject);
|
||||||
@ -2052,7 +2052,7 @@ int QTest::qRun()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void QTest::qCleanup()
|
void QTest::qCleanup()
|
||||||
{
|
{
|
||||||
currentTestObject = nullptr;
|
currentTestObject = nullptr;
|
||||||
@ -2079,7 +2079,7 @@ void QTest::qCleanup()
|
|||||||
|
|
||||||
Behaves identically to qExec(QObject *, int, char**) but takes a
|
Behaves identically to qExec(QObject *, int, char**) but takes a
|
||||||
QStringList of \a arguments instead of a \c char** list.
|
QStringList of \a arguments instead of a \c char** list.
|
||||||
*/
|
*/
|
||||||
int QTest::qExec(QObject *testObject, const QStringList &arguments)
|
int QTest::qExec(QObject *testObject, const QStringList &arguments)
|
||||||
{
|
{
|
||||||
const int argc = arguments.count();
|
const int argc = arguments.count();
|
||||||
@ -2098,14 +2098,14 @@ int QTest::qExec(QObject *testObject, const QStringList &arguments)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void QTest::qFail(const char *message, const char *file, int line)
|
void QTest::qFail(const char *message, const char *file, int line)
|
||||||
{
|
{
|
||||||
QTestResult::fail(message, file, line);
|
QTestResult::fail(message, file, line);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
bool QTest::qVerify(bool statement, const char *statementStr, const char *description,
|
bool QTest::qVerify(bool statement, const char *statementStr, const char *description,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2113,8 +2113,8 @@ bool QTest::qVerify(bool statement, const char *statementStr, const char *descri
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \fn void QTest::qSkip(const char *message, const char *file, int line)
|
/*! \fn void QTest::qSkip(const char *message, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
void QTest::qSkip(const char *message, const char *file, int line)
|
void QTest::qSkip(const char *message, const char *file, int line)
|
||||||
{
|
{
|
||||||
QTestResult::addSkip(message, file, line);
|
QTestResult::addSkip(message, file, line);
|
||||||
@ -2122,8 +2122,8 @@ void QTest::qSkip(const char *message, const char *file, int line)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \fn bool QTest::qExpectFail(const char *dataIndex, const char *comment, TestFailMode mode, const char *file, int line)
|
/*! \fn bool QTest::qExpectFail(const char *dataIndex, const char *comment, TestFailMode mode, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
bool QTest::qExpectFail(const char *dataIndex, const char *comment,
|
bool QTest::qExpectFail(const char *dataIndex, const char *comment,
|
||||||
QTest::TestFailMode mode, const char *file, int line)
|
QTest::TestFailMode mode, const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2168,7 +2168,7 @@ void QTest::qCaught(const char *expected, const char *what, const char *file, in
|
|||||||
/*!
|
/*!
|
||||||
\internal
|
\internal
|
||||||
\deprecated [6.3] Use qWarning() instead
|
\deprecated [6.3] Use qWarning() instead
|
||||||
*/
|
*/
|
||||||
void QTest::qWarn(const char *message, const char *file, int line)
|
void QTest::qWarn(const char *message, const char *file, int line)
|
||||||
{
|
{
|
||||||
QTestLog::warn(message, file, line);
|
QTestLog::warn(message, file, line);
|
||||||
@ -2281,7 +2281,7 @@ void QTest::failOnWarning(const QRegularExpression &messagePattern)
|
|||||||
#endif // QT_CONFIG(regularexpression)
|
#endif // QT_CONFIG(regularexpression)
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
static inline bool isWindowsBuildDirectory(const QString &dirName)
|
static inline bool isWindowsBuildDirectory(const QString &dirName)
|
||||||
@ -2301,7 +2301,7 @@ static inline bool isWindowsBuildDirectory(const QString &dirName)
|
|||||||
|
|
||||||
Returns the temporary directory where the data was extracted or null in case of
|
Returns the temporary directory where the data was extracted or null in case of
|
||||||
errors.
|
errors.
|
||||||
*/
|
*/
|
||||||
QSharedPointer<QTemporaryDir> QTest::qExtractTestData(const QString &dirName)
|
QSharedPointer<QTemporaryDir> QTest::qExtractTestData(const QString &dirName)
|
||||||
{
|
{
|
||||||
QSharedPointer<QTemporaryDir> result; // null until success, then == tempDir
|
QSharedPointer<QTemporaryDir> result; // null until success, then == tempDir
|
||||||
@ -2353,7 +2353,7 @@ QSharedPointer<QTemporaryDir> QTest::qExtractTestData(const QString &dirName)
|
|||||||
#endif // QT_CONFIG(temporaryfile)
|
#endif // QT_CONFIG(temporaryfile)
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
QString QTest::qFindTestData(const QString& base, const char *file, int line, const char *builddir,
|
QString QTest::qFindTestData(const QString& base, const char *file, int line, const char *builddir,
|
||||||
const char *sourcedir)
|
const char *sourcedir)
|
||||||
@ -2494,7 +2494,7 @@ QString QTest::qFindTestData(const QString& base, const char *file, int line, co
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
QString QTest::qFindTestData(const char *base, const char *file, int line, const char *builddir,
|
QString QTest::qFindTestData(const char *base, const char *file, int line, const char *builddir,
|
||||||
const char *sourcedir)
|
const char *sourcedir)
|
||||||
{
|
{
|
||||||
@ -2502,21 +2502,21 @@ QString QTest::qFindTestData(const char *base, const char *file, int line, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void *QTest::qData(const char *tagName, int typeId)
|
void *QTest::qData(const char *tagName, int typeId)
|
||||||
{
|
{
|
||||||
return fetchData(QTestResult::currentTestData(), tagName, typeId);
|
return fetchData(QTestResult::currentTestData(), tagName, typeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void *QTest::qGlobalData(const char *tagName, int typeId)
|
void *QTest::qGlobalData(const char *tagName, int typeId)
|
||||||
{
|
{
|
||||||
return fetchData(QTestResult::currentGlobalTestData(), tagName, typeId);
|
return fetchData(QTestResult::currentGlobalTestData(), tagName, typeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void *QTest::qElementData(const char *tagName, int metaTypeId)
|
void *QTest::qElementData(const char *tagName, int metaTypeId)
|
||||||
{
|
{
|
||||||
QTEST_ASSERT(tagName);
|
QTEST_ASSERT(tagName);
|
||||||
@ -2532,7 +2532,7 @@ void *QTest::qElementData(const char *tagName, int metaTypeId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void QTest::addColumnInternal(int id, const char *name)
|
void QTest::addColumnInternal(int id, const char *name)
|
||||||
{
|
{
|
||||||
QTestTable *tbl = QTestTable::currentTestTable();
|
QTestTable *tbl = QTestTable::currentTestTable();
|
||||||
@ -2671,14 +2671,14 @@ bool QTest::currentTestFailed()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
QObject *QTest::testObject()
|
QObject *QTest::testObject()
|
||||||
{
|
{
|
||||||
return currentTestObject;
|
return currentTestObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
void QTest::setMainSourcePath(const char *file, const char *builddir)
|
void QTest::setMainSourcePath(const char *file, const char *builddir)
|
||||||
{
|
{
|
||||||
QString mainSourceFile = QFile::decodeName(file);
|
QString mainSourceFile = QFile::decodeName(file);
|
||||||
@ -2700,7 +2700,7 @@ void QTest::setMainSourcePath(const char *file, const char *builddir)
|
|||||||
|
|
||||||
If the caller has already passed a failure message showing the compared
|
If the caller has already passed a failure message showing the compared
|
||||||
values, or if those values cannot be stringified, val1 and val2 can be null.
|
values, or if those values cannot be stringified, val1 and val2 can be null.
|
||||||
*/
|
*/
|
||||||
bool QTest::compare_helper(bool success, const char *failureMsg,
|
bool QTest::compare_helper(bool success, const char *failureMsg,
|
||||||
char *val1, char *val2,
|
char *val1, char *val2,
|
||||||
const char *actual, const char *expected,
|
const char *actual, const char *expected,
|
||||||
@ -2730,7 +2730,7 @@ static bool floatingCompare(const T &actual, const T &expected)
|
|||||||
|
|
||||||
/*! \fn bool QTest::qCompare(const qfloat16 &t1, const qfloat16 &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const qfloat16 &t1, const qfloat16 &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(qfloat16 const &t1, qfloat16 const &t2, const char *actual, const char *expected,
|
bool QTest::qCompare(qfloat16 const &t1, qfloat16 const &t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2741,7 +2741,7 @@ bool QTest::qCompare(qfloat16 const &t1, qfloat16 const &t2, const char *actual,
|
|||||||
|
|
||||||
/*! \fn bool QTest::qCompare(const float &t1, const float &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const float &t1, const float &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const char *expected,
|
bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2752,7 +2752,7 @@ bool QTest::qCompare(float const &t1, float const &t2, const char *actual, const
|
|||||||
|
|
||||||
/*! \fn bool QTest::qCompare(const double &t1, const double &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const double &t1, const double &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(double const &t1, double const &t2, const char *actual, const char *expected,
|
bool QTest::qCompare(double const &t1, double const &t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2764,7 +2764,7 @@ bool QTest::qCompare(double const &t1, double const &t2, const char *actual, con
|
|||||||
/*! \fn bool QTest::qCompare(int t1, int t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(int t1, int t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(int t1, int t2, const char *actual, const char *expected,
|
bool QTest::qCompare(int t1, int t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2777,7 +2777,7 @@ bool QTest::qCompare(int t1, int t2, const char *actual, const char *expected,
|
|||||||
/*! \fn bool QTest::qCompare(qsizetype t1, qsizetype t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(qsizetype t1, qsizetype t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 6.0
|
\since 6.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
bool QTest::qCompare(qsizetype t1, qsizetype t2, const char *actual, const char *expected,
|
bool QTest::qCompare(qsizetype t1, qsizetype t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
@ -2791,7 +2791,7 @@ bool QTest::qCompare(qsizetype t1, qsizetype t2, const char *actual, const char
|
|||||||
/*! \fn bool QTest::qCompare(unsigned t1, unsigned t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(unsigned t1, unsigned t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(unsigned t1, unsigned t2, const char *actual, const char *expected,
|
bool QTest::qCompare(unsigned t1, unsigned t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2803,7 +2803,7 @@ bool QTest::qCompare(unsigned t1, unsigned t2, const char *actual, const char *e
|
|||||||
/*! \fn bool QTest::qCompare(QStringView t1, QStringView t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(QStringView t1, QStringView t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(QStringView t1, QStringView t2, const char *actual, const char *expected,
|
bool QTest::qCompare(QStringView t1, QStringView t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2815,7 +2815,7 @@ bool QTest::qCompare(QStringView t1, QStringView t2, const char *actual, const c
|
|||||||
/*! \fn bool QTest::qCompare(QStringView t1, const QLatin1String &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(QStringView t1, const QLatin1String &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(QStringView t1, const QLatin1String &t2, const char *actual, const char *expected,
|
bool QTest::qCompare(QStringView t1, const QLatin1String &t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2827,7 +2827,7 @@ bool QTest::qCompare(QStringView t1, const QLatin1String &t2, const char *actual
|
|||||||
/*! \fn bool QTest::qCompare(const QLatin1String &t1, QStringView t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const QLatin1String &t1, QStringView t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
bool QTest::qCompare(const QLatin1String &t1, QStringView t2, const char *actual, const char *expected,
|
bool QTest::qCompare(const QLatin1String &t1, QStringView t2, const char *actual, const char *expected,
|
||||||
const char *file, int line)
|
const char *file, int line)
|
||||||
{
|
{
|
||||||
@ -2839,25 +2839,25 @@ bool QTest::qCompare(const QLatin1String &t1, QStringView t2, const char *actual
|
|||||||
/*! \fn bool QTest::qCompare(const QString &t1, const QString &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const QString &t1, const QString &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn bool QTest::qCompare(const QString &t1, const QLatin1String &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const QString &t1, const QLatin1String &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn bool QTest::qCompare(const QLatin1String &t1, const QString &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const QLatin1String &t1, const QString &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
\since 5.14
|
\since 5.14
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn bool QTest::qCompare(const double &t1, const float &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const double &t1, const float &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn bool QTest::qCompare(const float &t1, const double &t2, const char *actual, const char *expected, const char *file, int line)
|
/*! \fn bool QTest::qCompare(const float &t1, const double &t2, const char *actual, const char *expected, const char *file, int line)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define TO_STRING_IMPL(TYPE, FORMAT) \
|
#define TO_STRING_IMPL(TYPE, FORMAT) \
|
||||||
template <> Q_TESTLIB_EXPORT char *QTest::toString<TYPE>(const TYPE &t) \
|
template <> Q_TESTLIB_EXPORT char *QTest::toString<TYPE>(const TYPE &t) \
|
||||||
@ -2893,7 +2893,7 @@ TO_STRING_IMPL(unsigned char, %hhu)
|
|||||||
the exponent, requiring a leading 0 on single-digit exponents; (at least)
|
the exponent, requiring a leading 0 on single-digit exponents; (at least)
|
||||||
MinGW includes a leading zero also on an already-two-digit exponent,
|
MinGW includes a leading zero also on an already-two-digit exponent,
|
||||||
e.g. 9e-040, which differs from more usual platforms. So massage that away.
|
e.g. 9e-040, which differs from more usual platforms. So massage that away.
|
||||||
*/
|
*/
|
||||||
static void massageExponent(char *text)
|
static void massageExponent(char *text)
|
||||||
{
|
{
|
||||||
char *p = strchr(text, 'e');
|
char *p = strchr(text, 'e');
|
||||||
@ -2984,7 +2984,7 @@ template <> Q_TESTLIB_EXPORT char *QTest::toString<char>(const char &t)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
char *QTest::toString(const char *str)
|
char *QTest::toString(const char *str)
|
||||||
{
|
{
|
||||||
if (!str) {
|
if (!str) {
|
||||||
@ -2997,7 +2997,7 @@ char *QTest::toString(const char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
char *QTest::toString(const volatile void *p) // Use volatile to match compare_ptr_helper()
|
char *QTest::toString(const volatile void *p) // Use volatile to match compare_ptr_helper()
|
||||||
{
|
{
|
||||||
return QTest::toString(const_cast<const void *>(p));
|
return QTest::toString(const_cast<const void *>(p));
|
||||||
@ -3011,7 +3011,7 @@ char *QTest::toString(const void *p)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
char *QTest::toString(const volatile QObject *vo)
|
char *QTest::toString(const volatile QObject *vo)
|
||||||
{
|
{
|
||||||
if (vo == nullptr)
|
if (vo == nullptr)
|
||||||
@ -3030,30 +3030,30 @@ char *QTest::toString(const volatile QObject *vo)
|
|||||||
|
|
||||||
/*! \fn char *QTest::toString(const QColor &color)
|
/*! \fn char *QTest::toString(const QColor &color)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn char *QTest::toString(const QRegion ®ion)
|
/*! \fn char *QTest::toString(const QRegion ®ion)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn char *QTest::toString(const QHostAddress &addr)
|
/*! \fn char *QTest::toString(const QHostAddress &addr)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn char *QTest::toString(QNetworkReply::NetworkError code)
|
/*! \fn char *QTest::toString(QNetworkReply::NetworkError code)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn char *QTest::toString(const QNetworkCookie &cookie)
|
/*! \fn char *QTest::toString(const QNetworkCookie &cookie)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \fn char *QTest::toString(const QList<QNetworkCookie> &list)
|
/*! \fn char *QTest::toString(const QList<QNetworkCookie> &list)
|
||||||
\internal
|
\internal
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
*/
|
*/
|
||||||
bool QTest::compare_string_helper(const char *t1, const char *t2, const char *actual,
|
bool QTest::compare_string_helper(const char *t1, const char *t2, const char *actual,
|
||||||
const char *expected, const char *file, int line)
|
const char *expected, const char *file, int line)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user