Make tests/auto/corelib compile on Windows CE

Change-Id: I71987d40ae69d95f645c4c7d26d50add4c799327
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
Kevin Funk 2012-08-28 17:13:42 +02:00 committed by Qt by Nokia
parent 42457c2f5f
commit 7cea395d1f
4 changed files with 8 additions and 2 deletions

View File

@ -6,5 +6,5 @@ RESOURCES += qfileinfo.qrc
TESTDATA += qfileinfo.qrc qfileinfo.pro tst_qfileinfo.cpp resources/file1 resources/file1.ext1 resources/file1.ext1.ext2
win32*:LIBS += -ladvapi32 -lnetapi32
win32*:!wince*:LIBS += -ladvapi32 -lnetapi32
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0

View File

@ -60,8 +60,10 @@
#define _WIN32_WINNT 0x500
#include <qt_windows.h>
#include <qlibrary.h>
#if !defined(Q_OS_WINCE)
#include <lm.h>
#endif
#endif
#include <qplatformdefs.h>
#include <qdebug.h>
#if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)

View File

@ -115,7 +115,7 @@ namespace QTest {
ip6.u8[10] << 8 | ip6.u8[11],
ip6.u8[12] << 8 | ip6.u8[13],
ip6.u8[14] << 8 | ip6.u8[15]);
return strdup(buf);
return qstrdup(buf);
}
}
QT_END_NAMESPACE

View File

@ -106,8 +106,10 @@ private slots:
void msecsTo();
void operator_eqeq_data();
void operator_eqeq();
#ifndef Q_OS_WINCE
void operator_insert_extract_data();
void operator_insert_extract();
#endif
void currentDateTime();
void currentDateTimeUtc();
void currentDateTimeUtc2();
@ -1231,6 +1233,7 @@ void tst_QDateTime::operator_eqeq()
}
}
#ifndef Q_OS_WINCE
void tst_QDateTime::operator_insert_extract_data()
{
QTest::addColumn<QDateTime>("dateTime");
@ -1304,6 +1307,7 @@ void tst_QDateTime::operator_insert_extract()
qputenv("TZ", previousTimeZone.toLocal8Bit().constData());
tzset();
}
#endif
void tst_QDateTime::toString_strformat_data()
{