Skip to content

Commit ee25b99

Browse files
committed
Quit app after finishing tests
1 parent 8c390c8 commit ee25b99

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Tests/Tests.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ void runTests(PluginEditor* editor)
8383
&helpfileFuzzer,
8484
&objectFuzzer,
8585
&helpfileErrorTest }, 23);
86+
87+
// The suite has finished (whether tests passed or failed). Quit the app
88+
// so the process exits instead of idling forever - the CI harness waits
89+
// for the process to terminate and parses stdout for pass/fail.
90+
MessageManager::callAsync([] {
91+
if (auto* app = JUCEApplicationBase::getInstance())
92+
app->quit();
93+
});
8694
});
8795
testRunnerThread.detach();
8896
}

0 commit comments

Comments
 (0)