484a186f50
Looks like I never even tested this. There were two problems: 1) when we asked for the recvmsg and sendmsg functions, we used the wrong variable (socketDescriptor was still -1) 2) we extracted the destination addresses, but never set them in the QIpPacketHeader object The added tests confirm that this works on Windows, Linux, Darwin, FreeBSD. There also seems to be a problem, obtaining the destination address on an IPv4 socket with a dual-stack sender (I can reproduce that on FreeBSD, macOS and Windows, plus an old version of Linux). Task-number: QTBUG-63605 Change-Id: I638cf58bfa7b4e5fb386fffd14ea732bddbc0c42 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
20 lines
330 B
Prolog
20 lines
330 B
Prolog
CONFIG += testcase
|
|
testcase.timeout = 800 # this test is slow
|
|
SOURCES += ../tst_qudpsocket.cpp
|
|
INCLUDEPATH += ../../../../../shared/
|
|
QT = core network testlib
|
|
|
|
MOC_DIR=tmp
|
|
|
|
win32 {
|
|
CONFIG(debug, debug|release) {
|
|
DESTDIR = ../debug
|
|
} else {
|
|
DESTDIR = ../release
|
|
}
|
|
} else {
|
|
DESTDIR = ../
|
|
}
|
|
|
|
TARGET = tst_qudpsocket
|