qdeclarativexmlhttprequest: Stabilize, ensure deletion of server.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Tue, 20 Dec 2011 14:46:17 +0000 (15:46 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Dec 2011 14:48:52 +0000 (15:48 +0100)
commitd0096381d2229db897dbd44f7ee476d4ed03a5f7
treedb46c8449d8814b61224c0b720ed5041fce5b2f7
parent9697e2af142a2c7751cdda5c5807c9fe74dee994
qdeclarativexmlhttprequest: Stabilize, ensure deletion of server.

Introduce QScopedPointer to make sure the server is also deleted in
case the test fails thus suppressing follow-up errors caused by
the port still being in use by a leaked server.

Change-Id: I9fd8a96ea5aba42487df8f22bc9a79917b9d8c16
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
tests/auto/declarative/qdeclarativexmlhttprequest/tst_qdeclarativexmlhttprequest.cpp