Skip to content

Commit

Permalink
Updated the BugTests::test_qprocess_finished_vpicaver_issue4
Browse files Browse the repository at this point in the history
  • Loading branch information
vpicaver committed Jan 10, 2024
1 parent 3344870 commit 6f67426
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/asyncfutureunittests/bugtests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,16 @@ void BugTests::test_qprocess_finished_vpicaver_issue4() {

proc->start(QString("ls"), QStringList());

bool subscribeCalled = false;
deferred.subscribe([&subscribeCalled, proc](Finished finished) {
QVERIFY(finished.exitCode == proc->exitCode());
QVERIFY(finished.status == proc->exitStatus());
subscribeCalled = true;
});

await(deferred.future(), 100);

QVERIFY(deferred.future().result().exitCode == proc->exitCode());
QVERIFY(deferred.future().result().status == proc->exitStatus());
QVERIFY(subscribeCalled == true);
}

0 comments on commit 6f67426

Please sign in to comment.