Skip to content

Commit 35e31c8

Browse files
committed
fix flaky QtTestDriver test
The test output contained timing information, leading to a flaky test. Fixed by using the TAP output, that doesn't contain timing information.
1 parent 7583400 commit 35e31c8

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/drivers/QtTestDriver.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ const InvokeResult QtTestStep::invokeStepBody() {
1414
}
1515
file.close();
1616

17-
QtTestObject testObject(this);
18-
int returnValue = QTest::qExec(
19-
&testObject,
20-
QStringList() << "test"
21-
<< "-o" << file.fileName()
22-
);
17+
QtTestObject testObject{this};
18+
const QStringList args{"test", "-o", file.fileName() + ",tap"};
19+
int returnValue = QTest::qExec(&testObject, args);
20+
2321
if (returnValue == 0) {
2422
return InvokeResult::success();
2523
} else {

0 commit comments

Comments
 (0)