From c3944206f7cffab9b478b4367382ee7f146ee97d Mon Sep 17 00:00:00 2001 From: EmilDohne <86836589+EmilDohne@users.noreply.github.com> Date: Sun, 7 Jul 2024 14:54:39 +0200 Subject: [PATCH] return res right away instead of on shouldExit() only --- PhotoshopTest/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/PhotoshopTest/src/main.cpp b/PhotoshopTest/src/main.cpp index a7a9131a..d7f4151a 100644 --- a/PhotoshopTest/src/main.cpp +++ b/PhotoshopTest/src/main.cpp @@ -24,10 +24,9 @@ int main() doctest::Context context; // set defaults - context.setOption("abort-after", 5); // stop test execution after 5 failed assertions + context.setOption("abort-after", 5); // stop test execution after 5 failed int res = context.run(); // run - if (context.shouldExit()) // important - query flags (and --exit) rely on the user doing this - return res; // propagate the result of the tests + return res; } \ No newline at end of file