Check maximum supported version in Client::Registry

Ensure that we do not connect to a version which our client library
does not support. If we would allow higher versions we would run the
risk that the wayland library calls into not existing callbacks.
This commit is contained in:
Martin Gräßlin 2014-09-19 10:54:09 +02:00
parent 4d77c197a9
commit 2bef3d08ef

View file

@ -134,7 +134,7 @@ void TestWaylandRegistry::testCreate()
/* registry should now about the interface now */ \
QVERIFY(registry.hasInterface(interface)); \
QVERIFY(!registry.bindMethod(name+1, version)); \
QVERIFY(!registry.bindMethod(name, version+1)); \
QVERIFY(registry.bindMethod(name, version+1)); \
auto *c = registry.bindMethod(name, version); \
QVERIFY(c); \
destroyFunction(c); \