Skip to content

Commit cf5140f

Browse files
committed
Remove unnecessary code path in custom catch main
1 parent b15fb11 commit cf5140f

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

test/CatchRunner.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,6 @@ int main(int argc, char *argv[])
4242
#else
4343
int main(int argc, char *argv[])
4444
{
45-
Catch::Session session;
46-
int result = session.applyCommandLine(argc, argv);
47-
if (result == 0)
48-
{
49-
result = session.run();
50-
}
51-
return result;
45+
throw std::runtime_error("Serial tests use Catch2's provided main.");
5246
}
5347
#endif

0 commit comments

Comments
 (0)