summaryrefslogtreecommitdiff
path: root/config.tests/x11
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-07-15 17:22:11 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2009-08-07 13:19:03 +0200
commit79c488a28819b58eed519fb3df2705b8c6e35e05 (patch)
treedeff561a11f6fc1ab41271a858f9f331918dcba2 /config.tests/x11
parent41d27eac40cecbc0067be9622c9bc1c579582a47 (diff)
downloadqt4-tools-79c488a28819b58eed519fb3df2705b8c6e35e05.tar.gz
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/x11')
-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 0000000000..a23fb08af1
--- /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 0000000000..58b82383ea
--- /dev/null
+++ b/config.tests/x11/xsync/xsync.pro
@@ -0,0 +1,3 @@
+CONFIG += x11
+CONFIG -= qt
+SOURCES = xsync.cpp