TestHTTPServer: Make listening an explicit operation that reports failure.
authorRobin Burchell <robin.burchell@jollamobile.com>
Thu, 20 Mar 2014 22:21:49 +0000 (23:21 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 20 Mar 2014 23:09:29 +0000 (00:09 +0100)
commitaa578c4e296a3bf5117fd878fcac70d1c11bd255
tree3ae73880b0054c99d645bdab3d1d5a043c51ac43
parent8f49f50a169db85401eb37daf4fe3a0fc3280603
TestHTTPServer: Make listening an explicit operation that reports failure.

Use this to print the error message when listening fails, and switch to always
stack allocating TestHTTPServer instances for easier cleanup.

Change-Id: I63b2bd38963b66611dc08a5c322615d91a91e675
Reviewed-by: John Brooks <john.brooks@dereferenced.net>
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
17 files changed:
tests/auto/qml/qqmlcomponent/tst_qqmlcomponent.cpp
tests/auto/qml/qqmlecmascript/tst_qqmlecmascript.cpp
tests/auto/qml/qqmllanguage/tst_qqmllanguage.cpp
tests/auto/qml/qqmlmoduleplugin/tst_qqmlmoduleplugin.cpp
tests/auto/qml/qqmlxmlhttprequest/tst_qqmlxmlhttprequest.cpp
tests/auto/quick/qquickanimatedimage/tst_qquickanimatedimage.cpp
tests/auto/quick/qquickborderimage/tst_qquickborderimage.cpp
tests/auto/quick/qquickfontloader/tst_qquickfontloader.cpp
tests/auto/quick/qquickimage/tst_qquickimage.cpp
tests/auto/quick/qquickloader/tst_qquickloader.cpp
tests/auto/quick/qquickpixmapcache/tst_qquickpixmapcache.cpp
tests/auto/quick/qquicktext/tst_qquicktext.cpp
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp
tests/auto/shared/testhttpserver.cpp
tests/auto/shared/testhttpserver.h
tests/manual/httpserver/main.cpp