diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2012-07-03 14:00:25 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-07-05 07:14:07 +0200 |
commit | 94a519372021708febd890d0cfe5c4be70948970 (patch) | |
tree | aa90cbc3e6c7adb7677ef2a251d37005a1c15029 /tests/auto/qml/qqmlmoduleplugin | |
parent | 2edefe36773db0cbe837c33f65d0cde577ccb67a (diff) |
Use unique port numbers for http servers in auto tests.
Prevents conflicts when tests are run in parallel.
Change-Id: Ic1652d963da291c7c41b31e2621874824fa575cb
Reviewed-by: Damian Jansen <damian.jansen@nokia.com>
Diffstat (limited to 'tests/auto/qml/qqmlmoduleplugin')
-rw-r--r-- | tests/auto/qml/qqmlmoduleplugin/tst_qqmlmoduleplugin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qml/qqmlmoduleplugin/tst_qqmlmoduleplugin.cpp b/tests/auto/qml/qqmlmoduleplugin/tst_qqmlmoduleplugin.cpp index 81aed01a73..b6490753eb 100644 --- a/tests/auto/qml/qqmlmoduleplugin/tst_qqmlmoduleplugin.cpp +++ b/tests/auto/qml/qqmlmoduleplugin/tst_qqmlmoduleplugin.cpp @@ -47,8 +47,8 @@ #include "../../shared/testhttpserver.h" #include "../../shared/util.h" -#define SERVER_ADDR "http://127.0.0.1:14450" -#define SERVER_PORT 14450 +#define SERVER_ADDR "http://127.0.0.1:14456" +#define SERVER_PORT 14456 class tst_qqmlmoduleplugin : public QQmlDataTest @@ -230,7 +230,7 @@ void tst_qqmlmoduleplugin::remoteImportWithQuotedUrl() QQmlEngine engine; QQmlComponent component(&engine); - component.setData("import \"http://127.0.0.1:14450/com/nokia/PureQmlModule\" \nComponentA { width: 300; ComponentB{} }", QUrl()); + component.setData("import \"" SERVER_ADDR "/com/nokia/PureQmlModule\" \nComponentA { width: 300; ComponentB{} }", QUrl()); QTRY_COMPARE(component.status(), QQmlComponent::Ready); QObject *object = component.create(); |