Socketpair is not supported on Vxworks

Change-Id: I7cfebfc85933ace1e449860b29c8ec85201690a0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Marcin Zdunek 2023-07-25 12:53:40 +02:00
parent de7eaa940d
commit e71693efb9
1 changed files with 4 additions and 0 deletions

View File

@ -2731,12 +2731,16 @@ void tst_QFile::unixFifo()
void tst_QFile::socketPair()
{
#if defined(Q_OS_VXWORKS)
QSKIP("socketpair is not available on Vxworks");
#else
int pipes[2] = { -1, -1 };
QVERIFY2(socketpair(AF_UNIX, SOCK_STREAM, 0, pipes) == 0, qPrintable(qt_error_string()));
unixPipe_helper(pipes);
if (pipes[0] != -1)
qt_safe_close(pipes[0]);
qt_safe_close(pipes[1]);
#endif
}
#endif