TestServerResolver: skip SRV tests when running on Wine.

This commit is contained in:
Mikkel Krautz 2018-01-04 10:58:34 +01:00
parent 5192831bc6
commit f0c2d8b1fc

View File

@ -8,6 +8,7 @@
#include <QSignalSpy>
#include "ServerResolver.h"
#include "PlatformCheck.h"
void signalSpyWait(QSignalSpy &spy) {
// We increase the timeout from 5s to 8s because travis builds could fail otherwise (slow network response).
@ -36,6 +37,11 @@ void TestServerResolver::simpleSrv() {
return;
#endif
// Qt 5's SRV resolver does not work in Wine.
if (PlatformCheck::IsWine()) {
return;
}
ServerResolver r;
QSignalSpy spy(&r, SIGNAL(resolved()));
@ -83,6 +89,11 @@ void TestServerResolver::srvCustomPort() {
return;
#endif
// Qt 5's SRV resolver does not work in Wine.
if (PlatformCheck::IsWine()) {
return;
}
ServerResolver r;
QSignalSpy spy(&r, SIGNAL(resolved()));