Skip to content

Commit

Permalink
Merge pull request #296 from iQiliO/fix-flaky-qttestdriver-test
Browse files Browse the repository at this point in the history
fix flaky QtTestDriver test
  • Loading branch information
ursfassler authored May 9, 2024
2 parents 7583400 + 35e31c8 commit e1fa84f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/drivers/QtTestDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,10 @@ const InvokeResult QtTestStep::invokeStepBody() {
}
file.close();

QtTestObject testObject(this);
int returnValue = QTest::qExec(
&testObject,
QStringList() << "test"
<< "-o" << file.fileName()
);
QtTestObject testObject{this};
const QStringList args{"test", "-o", file.fileName() + ",tap"};
int returnValue = QTest::qExec(&testObject, args);

if (returnValue == 0) {
return InvokeResult::success();
} else {
Expand Down

0 comments on commit e1fa84f

Please sign in to comment.