Commit 8672cbec authored by hjk's avatar hjk
Browse files

debugger: add a manual QDate and QTime test

parent 33c1f962
......@@ -415,7 +415,27 @@ int testCatchThrow()
return gotit;
}
QDateTime testQDateTime()
void testQDate()
{
QDate date;
date = QDate::currentDate();
date = date.addDays(5);
date = date.addDays(5);
date = date.addDays(5);
date = date.addDays(5);
}
void testQTime()
{
QTime time;
time = QTime::currentTime();
time = time.addSecs(5);
time = time.addSecs(5);
time = time.addSecs(5);
time = time.addSecs(5);
}
void testQDateTime()
{
QDateTime date;
date = QDateTime::currentDateTime();
......@@ -423,7 +443,6 @@ QDateTime testQDateTime()
date = date.addSecs(5);
date = date.addSecs(5);
date = date.addSecs(5);
return date;
}
QFileInfo testQFileInfo()
......@@ -1980,7 +1999,9 @@ int main(int argc, char *argv[])
testQStack();
testUninitialized();
testPointer();
testQDate();
testQDateTime();
testQTime();
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