tst_qstring: Enable previously disabled test for Q_CC_MINGW.

gcc 4.8 now supports all printf()-formats.

Change-Id: Idead5ff77c3825c642615eceed110c1252869e90
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
Friedemann Kleint 2015-10-27 15:13:49 +01:00
parent dbf1c2eb9f
commit c4265fb1b8
1 changed files with 0 additions and 6 deletions

View File

@ -1268,12 +1268,10 @@ void tst_QString::sprintf()
a.sprintf("%s%n%s", "hello", &n1, "goodbye");
QCOMPARE(n1, 5);
QCOMPARE(a, QString("hellogoodbye"));
#ifndef Q_CC_MINGW // does not know %ll
qlonglong n2;
a.sprintf("%s%s%lln%s", "foo", "bar", &n2, "whiz");
QCOMPARE((int)n2, 6);
QCOMPARE(a, QString("foobarwhiz"));
#endif
}
/*
@ -6106,9 +6104,6 @@ void tst_QString::QCharRefDetaching() const
void tst_QString::sprintfZU() const
{
#ifdef Q_CC_MINGW
QSKIP("MinGW does not support '%zu'.");
#else
{
QString string;
size_t s = 6;
@ -6137,7 +6132,6 @@ void tst_QString::sprintfZU() const
string.sprintf("%zu %s\n", s, "foo");
QCOMPARE(string, QString::fromLatin1("6 foo\n"));
}
#endif // !Q_CC_MINGW
}
void tst_QString::repeatedSignature() const