qt5base-lts/tests/manual
Louai Al-Khanji f0a6d45cc8 qt_poll: split out into separate file and sanitize build
The qt_poll function calls recv to query whether fds marked by select
as readable should be marked POLLIN or POLLHUP in the pollfd structure.
On many platforms such as QNX this requires extra link-time libraries
which were not previously required by QtCore.

While the qt_poll function is intended as a fallback mechanism only for
those platforms which do not implement poll natively, the function was
compiled unconditionally whenever QT_BUILD_INTERNAL was defined, e.g.
in developer builds.

Additionally the function was included on those systems that define poll
in system headers so that configure determines build-time availability,
but do not define _POSIX_POLL > 0 or indicate POSIX:2008 compliance via
either the _POSIX_VERSION or _XOPEN_VERSION macros. On those systems a
sysconf query for _SC_POLL was performed to determine at runtime whether
to call the system poll or qt_poll.

Both of these cases are in fact counterproductive. In the first case the
sole consumer of the function is a single manual unit test. In the
second, to my knowledge no platform requires the runtime fallback.
Despite that, we were forcing an extra dylib in both cases.

Both cases are fixed by 1) moving the implementation into its own file
for the unit test to include and 2) dropping the dynamic fallback if
configure determines availability of poll at compile-time.

This also reverts commit 1377709711, which
added -lsocket for QtCore on QNX.

Change-Id: I2dd10695c5d4cac81b68d2c2558797f3cdabc153
Reviewed-by: James McDonnell <jmcdonnell@qnx.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-12-05 00:47:36 +00:00
..
bearerex Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
cocoa Link to AppKit instead of Cocoa. 2015-09-05 11:49:17 +00:00
corelib/tools Update copyright headers 2015-02-11 06:49:51 +00:00
diaglib Merge remote-tracking branch 'origin/5.6' into dev 2015-11-18 09:01:51 +01:00
dialogs Fix build of the manual dialog test with Qt 4. 2015-03-25 09:51:28 +00:00
filetest Update copyright headers 2015-02-11 06:49:51 +00:00
gestures Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
highdpi Merge remote-tracking branch 'origin/5.6' into dev 2015-10-23 14:45:03 +02:00
inputmethodhints Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
keypadnavigation Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
lance Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
mkspecs Fixed license headers 2015-02-17 18:46:09 +00:00
network_remote_stresstest qtbase tests: Remove QT_DISABLE_DEPRECATED_BEFORE=0 for simple cases. 2015-08-31 19:56:59 +00:00
network_stresstest Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
qcursor Merge remote-tracking branch 'origin/5.6' into dev 2015-11-27 08:27:53 +01:00
qdesktopservices Update copyright headers 2015-02-11 06:49:51 +00:00
qdesktopwidget Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qgraphicsitem Update copyright headers 2015-02-11 06:49:51 +00:00
qgraphicsitemgroup Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qgraphicslayout/flicker Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qhttpnetworkconnection Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qimagereader Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qlocale Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qmetatype Update copyright headers 2015-02-11 06:49:51 +00:00
qmimedatabase Add manual test for QMimeDatabase. 2015-02-25 14:06:20 +00:00
qnetworkaccessmanager/qget Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
qnetworkconfiguration Update copyright headers 2015-02-11 06:49:51 +00:00
qnetworkconfigurationmanager Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qnetworkreply Remove remaining support for Blackberry 2015-11-21 15:38:39 +00:00
qopenglcontext Update copyright headers 2015-02-11 06:49:51 +00:00
qopengltextureblitter Add support for TEXTURE_EXTERNAL_OES in the internal texture blitter 2015-10-21 13:32:42 +00:00
qopenglwidget/openglwidget Support mixing native child widgets with texture-based ones 2015-11-19 13:56:52 +00:00
qopenglwindow/multiwindow Fixed license headers 2015-02-17 18:46:09 +00:00
qprintdevice_dump Update copyright headers 2015-02-11 06:49:51 +00:00
qscreen Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
qssloptions Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qsslsocket Update copyright headers 2015-02-11 06:49:51 +00:00
qsysinfo Merge the multiple implementations of getting the local hostname 2015-08-13 16:34:51 +00:00
qt_poll qt_poll: split out into separate file and sanitize build 2015-12-05 00:47:36 +00:00
qtabletevent Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
qtbug-8933 Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qtexteditlist Update copyright headers 2015-02-11 06:49:51 +00:00
qtouchevent Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
qwidget_zorder Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
repaint Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
shortcuts Update copyright headers 2015-02-11 06:49:51 +00:00
socketengine Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
textrendering Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
touch Manual touch test: Add gestures. 2015-06-06 06:26:39 +00:00
transientwindow Update copyright headers 2015-02-11 06:49:51 +00:00
unc Tests: Fix single-character string literals. 2015-10-13 18:14:27 +00:00
widgetgrab Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
widgets Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
windowchildgeometry Update copyright headers 2015-02-11 06:49:51 +00:00
windowflags Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
windowgeometry Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
windowmodality Remove QT_DISABLE_DEPRECATED_BEFORE=0 from tests not using deprecated API. 2015-09-01 16:57:46 +00:00
windowtransparency Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
xcb_gl_integration Fixed license headers 2015-02-17 18:46:09 +00:00
xembed-raster Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
xembed-widgets Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
manual.pro fix usage of wince scope 2015-06-05 10:29:10 +00:00