Commit 0915d3e2 authored by hjk's avatar hjk
Browse files

debugger: add manual test for QDateTime, also extend script test a bit

parent e1f9a003
......@@ -28,6 +28,7 @@
**************************************************************************/
#include <QtCore/QDebug>
#include <QtCore/QDateTime>
#include <QtCore/QDir>
#include <QtCore/QHash>
#include <QtCore/QLibrary>
......@@ -194,6 +195,16 @@ void testQByteArray()
ba += 2;
}
void testQDateTime()
{
QDateTime date;
date = QDateTime::currentDateTime();
date = date.addSecs(5);
date = date.addSecs(5);
date = date.addSecs(5);
date = date.addSecs(5);
}
void testQFileInfo()
{
QFileInfo fi("/tmp/t");
......@@ -553,6 +564,7 @@ void testQSet()
QObject ob;
QSet<QPointer<QObject> > hash;
QPointer<QObject> ptr(&ob);
ptr;
//hash.insert(ptr);
//hash.insert(ptr);
//hash.insert(ptr);
......@@ -592,7 +604,7 @@ public:
private:
QSharedDataPointer<EmployeeData> d;
};
};
void testQSharedPointer()
......@@ -1301,6 +1313,7 @@ int main(int argc, char *argv[])
testQStack();
testUninitialized();
testPointer();
testQDateTime();
testQFileInfo();
testObject1();
testVector1();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment