From e71693efb9b181ab4f2b450963dbb0ca95b0f3ac Mon Sep 17 00:00:00 2001 From: Marcin Zdunek Date: Tue, 25 Jul 2023 12:53:40 +0200 Subject: [PATCH] Socketpair is not supported on Vxworks Change-Id: I7cfebfc85933ace1e449860b29c8ec85201690a0 Reviewed-by: Thiago Macieira --- tests/auto/corelib/io/qfile/tst_qfile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/auto/corelib/io/qfile/tst_qfile.cpp b/tests/auto/corelib/io/qfile/tst_qfile.cpp index 2f124a34ee..bcbe0f7636 100644 --- a/tests/auto/corelib/io/qfile/tst_qfile.cpp +++ b/tests/auto/corelib/io/qfile/tst_qfile.cpp @@ -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