summaryrefslogtreecommitdiffstats
path: root/config.tests
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-15 15:22:11 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-07 11:19:03 (GMT)
commit79c488a28819b58eed519fb3df2705b8c6e35e05 (patch)
treedeff561a11f6fc1ab41271a858f9f331918dcba2 /config.tests
parent41d27eac40cecbc0067be9622c9bc1c579582a47 (diff)
downloadQt-79c488a28819b58eed519fb3df2705b8c6e35e05.zip
Qt-79c488a28819b58eed519fb3df2705b8c6e35e05.tar.gz
Qt-79c488a28819b58eed519fb3df2705b8c6e35e05.tar.bz2
Add functionality tests for XSync.
It was reported to be auto-detected, but wasn't. Apparently, AIX 6's X11 doesn't have this. Reviewed-By: Denis Dzyubenko <denis.dzyubenko@nokia.com> (cherry picked from commit 0a63875d787e1b035ace2c76fa1d0de6329127d7)
Diffstat (limited to 'config.tests')
-rw-r--r--config.tests/x11/xsync/xsync.cpp11
-rw-r--r--config.tests/x11/xsync/xsync.pro3
2 files changed, 14 insertions, 0 deletions
diff --git a/config.tests/x11/xsync/xsync.cpp b/config.tests/x11/xsync/xsync.cpp
new file mode 100644
index 0000000..a23fb08
--- /dev/null
+++ b/config.tests/x11/xsync/xsync.cpp
@@ -0,0 +1,11 @@
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/extensions/sync.h>
+
+int main(int, char **)
+{
+ XSyncValue value;
+ (void*)&XSyncIntToValue;
+ (void*)&XSyncCreateCounter;
+ return 0;
+}
diff --git a/config.tests/x11/xsync/xsync.pro b/config.tests/x11/xsync/xsync.pro
new file mode 100644
index 0000000..58b8238
--- /dev/null
+++ b/config.tests/x11/xsync/xsync.pro
@@ -0,0 +1,3 @@
+CONFIG += x11
+CONFIG -= qt
+SOURCES = xsync.cpp