summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-03-04 17:01:24 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-03-04 17:01:24 (GMT)
commit95786655e304a22bd922b40184d314eddb72b002 (patch)
treedd2cc1a6088e2955cf72fd7c2a095d28237e6dfa /tests
parentbd8c5da79174d18422d9db55c18d8f11ad41e27f (diff)
downloadQt-95786655e304a22bd922b40184d314eddb72b002.zip
Qt-95786655e304a22bd922b40184d314eddb72b002.tar.gz
Qt-95786655e304a22bd922b40184d314eddb72b002.tar.bz2
tst_qhostinfo: Compile fix
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qhostinfo/tst_qhostinfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/qhostinfo/tst_qhostinfo.cpp b/tests/auto/qhostinfo/tst_qhostinfo.cpp
index ae4ffde..4282062 100644
--- a/tests/auto/qhostinfo/tst_qhostinfo.cpp
+++ b/tests/auto/qhostinfo/tst_qhostinfo.cpp
@@ -484,7 +484,8 @@ void tst_QHostInfo::cache()
// lookup once, wait in event loop, result should not come directly.
bool valid = true;
- QHostInfo result = qt_qhostinfo_lookup("localhost", this, SLOT(resultsReady(QHostInfo)), &valid);
+ int id = -1;
+ QHostInfo result = qt_qhostinfo_lookup("localhost", this, SLOT(resultsReady(QHostInfo)), &valid, &id);
QTestEventLoop::instance().enterLoop(5);
QVERIFY(!QTestEventLoop::instance().timeout());
QVERIFY(valid == false);
@@ -492,7 +493,7 @@ void tst_QHostInfo::cache()
// loopkup second time, result should come directly
valid = false;
- result = qt_qhostinfo_lookup("localhost", this, SLOT(resultsReady(QHostInfo)), &valid);
+ result = qt_qhostinfo_lookup("localhost", this, SLOT(resultsReady(QHostInfo)), &valid, &id);
QVERIFY(valid == true);
QVERIFY(!result.addresses().isEmpty());
@@ -501,7 +502,7 @@ void tst_QHostInfo::cache()
// lookup third time, result should not come directly.
valid = true;
- result = qt_qhostinfo_lookup("localhost", this, SLOT(resultsReady(QHostInfo)), &valid);
+ result = qt_qhostinfo_lookup("localhost", this, SLOT(resultsReady(QHostInfo)), &valid, &id);
QTestEventLoop::instance().enterLoop(5);
QVERIFY(!QTestEventLoop::instance().timeout());
QVERIFY(valid == false);