Skip to content

Commit 08049bd

Browse files
matlo607Matthieu Longo
authored and
Matthieu Longo
committed
fix clang build on travis-ci
1 parent a60a730 commit 08049bd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

examples/CalcQt/features/step_definitions/CalculatorQtSteps.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ GIVEN("^I just turned on the calculator$") {
3737
ctx->calculator.move(0, 0);
3838
ctx->calculator.show();
3939
#if QT_VERSION >= 0x050000
40-
QTest::qWaitForWindowExposed(&ctx->calculator);
40+
bool exposed = QTest::qWaitForWindowExposed(&ctx->calculator);
4141
#else
42-
QTest::qWaitForWindowShown(&ctx->calculator);
42+
bool exposed = QTest::qWaitForWindowShown(&ctx->calculator);
4343
#endif
44-
QTest::qWait(millisecondsToWait());
44+
if (!exposed) {
45+
QTest::qWait(millisecondsToWait());
46+
}
4547
}
4648

4749
WHEN("^I press (\\d+)$") {

0 commit comments

Comments
 (0)