Register libdebug domains in test_all.

This commit is contained in:
Alexander Shaduri
2021-03-16 18:10:19 +04:00
parent 9db25f3907
commit b84f3d9218
2 changed files with 19 additions and 3 deletions
+2 -1
View File
@@ -16,8 +16,9 @@ target_sources(test_all PRIVATE
test_all.cpp
)
target_link_libraries(test_all PRIVATE
libdebug
applib_tests
Catch2WithMain
Catch2
)
catch_discover_tests(test_all)
+17 -2
View File
@@ -10,8 +10,23 @@ Copyright:
/// @{
// Nothing here - by linking to Catch2WithMain we define the main() function.
// We link to all the other test-containing libraries.
#include "catch2/catch_session.hpp"
#include "libdebug/libdebug.h"
int main(int argc, char* argv[])
{
debug_register_domain("gtk");
debug_register_domain("app");
debug_register_domain("hz");
debug_register_domain("rmn");
debug_register_domain("rconfig");
int result = Catch::Session().run( argc, argv );
return result;
}
/// @}