[autotests] Compare booleans to booleans
Summary: Compiler errors: 17:06:23 /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/testDataDevice.dir/test_datadevice.cpp.o: in function `TestDataDevice::testDrag()': 17:06:23 /home/jenkins/workspace/Frameworks kwayland kf5-qt5 SUSEQt5.9/autotests/client/test_datadevice.cpp:290: undefined reference to `bool QTest::qCompare<int, bool>(int const&, bool const&, char const*, char const*, char const*, int)' 17:06:23 /usr/lib64/gcc/x86_64-suse-linux/8/../../../../x86_64-suse-linux/bin/ld: CMakeFiles/testDataDevice.dir/test_datadevice.cpp.o: in function `TestDataDevice::testDragInternally()': 17:06:23 /home/jenkins/workspace/Frameworks kwayland kf5-qt5 SUSEQt5.9/autotests/client/test_datadevice.cpp:369: undefined reference to `bool QTest::qCompare<int, bool>(int const&, bool const&, char const*, char const*, char const*, int)' Test Plan: Ran testDataDevice, still passes. Reviewers: #kwin, romangg, broulik Reviewed By: broulik Subscribers: kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D15330
This commit is contained in:
parent
94b5140b53
commit
44f0d3ced0
1 changed files with 2 additions and 2 deletions
|
@ -287,7 +287,7 @@ void TestDataDevice::testDrag()
|
|||
// finally start the drag
|
||||
dataDevice->startDrag(pointerButtonSerial, dataSource.data(), surface.data());
|
||||
QCOMPARE(dragStartedSpy.wait(500), success);
|
||||
QCOMPARE(dragStartedSpy.count(), success);
|
||||
QCOMPARE(!dragStartedSpy.isEmpty(), success);
|
||||
QCOMPARE(deviceInterface->dragSource(), success ? sourceInterface : nullptr);
|
||||
QCOMPARE(deviceInterface->origin(), success ? surfaceInterface : nullptr);
|
||||
QVERIFY(!deviceInterface->icon());
|
||||
|
@ -366,7 +366,7 @@ void TestDataDevice::testDragInternally()
|
|||
// finally start the internal drag
|
||||
dataDevice->startDragInternally(pointerButtonSerial, surface.data(), iconSurface.data());
|
||||
QCOMPARE(dragStartedSpy.wait(500), success);
|
||||
QCOMPARE(dragStartedSpy.count(), success);
|
||||
QCOMPARE(!dragStartedSpy.isEmpty(), success);
|
||||
QVERIFY(!deviceInterface->dragSource());
|
||||
QCOMPARE(deviceInterface->origin(), success ? surfaceInterface : nullptr);
|
||||
QCOMPARE(deviceInterface->icon(), success ? iconSurfaceInterface : nullptr);
|
||||
|
|
Loading…
Reference in a new issue