summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-06 18:30:20 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-11-06 18:45:48 (GMT)
commit338fe3c15e90d62606806b0845bb621dd05153ae (patch)
tree60bb6d291d56883d5ba6c2059594f251a2c9db0b /config.tests
parent0d92333ec537821876f2d3365e3c1780cfb3c2ea (diff)
downloadQt-338fe3c15e90d62606806b0845bb621dd05153ae.zip
Qt-338fe3c15e90d62606806b0845bb621dd05153ae.tar.gz
Qt-338fe3c15e90d62606806b0845bb621dd05153ae.tar.bz2
Improved xsync feature testing.
Make sure we actually call any XSync function to test if those functions are available on the platform. On HPUX there is something wrong since X11 header files contain required function declarations, however we cannot link to them. Reviewed-by: Andreas
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/x11/xsync/xsync.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/config.tests/x11/xsync/xsync.cpp b/config.tests/x11/xsync/xsync.cpp
index a7175de..ed3ecf5 100644
--- a/config.tests/x11/xsync/xsync.cpp
+++ b/config.tests/x11/xsync/xsync.cpp
@@ -48,5 +48,7 @@ int main(int, char **)
XSyncValue value;
(void*)&XSyncIntToValue;
(void*)&XSyncCreateCounter;
- return 0;
+ int a, b;
+ Status ret = XSyncInitialize(NULL, &a, &b);
+ return ret;
}