mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 02:38:59 +00:00
LibTest: Handle test reporting in the a unique path
This commit is contained in:
parent
2f8fac3528
commit
b1b94692e6
Notes:
sideshowbarker
2024-07-17 22:34:55 +09:00
Author: https://github.com/mhermier
Commit: b1b94692e6
Pull-request: https://github.com/SerenityOS/serenity/pull/11291
2 changed files with 30 additions and 17 deletions
|
@ -10,6 +10,7 @@
|
|||
|
||||
#include <AK/Function.h>
|
||||
#include <AK/String.h>
|
||||
#include <AK/Variant.h>
|
||||
|
||||
namespace Test {
|
||||
|
||||
|
@ -30,7 +31,8 @@ public:
|
|||
bool run(RunType run_type = RunType::UsingChildProcess);
|
||||
|
||||
private:
|
||||
bool do_report(Failure failure);
|
||||
using Report = Variant<Failure, int>;
|
||||
bool do_report(Report report);
|
||||
|
||||
String m_type;
|
||||
Function<Crash::Failure()> m_crash_function;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue