KiCad PCB EDA Suite
pcbnew/test_module.cpp File Reference
#include <boost/test/unit_test.hpp>
#include <kiplatform/app.h>
#include <wx/init.h>

Go to the source code of this file.

Functions

bool init_unit_test ()
 Main file for the pcbnew tests to be compiled. More...
 
int main (int argc, char *argv[])
 

Function Documentation

◆ init_unit_test()

bool init_unit_test ( )

Main file for the pcbnew tests to be compiled.

Definition at line 33 of file pcbnew/test_module.cpp.

34{
36 boost::unit_test::framework::master_test_suite().p_name.value = "Pcbnew module tests";
37 return wxInitialize();
38}
bool Init()
Perform application-specific initialization tasks.
Definition: gtk/app.cpp:40

References KIPLATFORM::APP::Init().

Referenced by main().

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 41 of file pcbnew/test_module.cpp.

42{
43 int ret = boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
44
45 // This causes some glib warnings on GTK3 (http://trac.wxwidgets.org/ticket/18274)
46 // but without it, Valgrind notices a lot of leaks from WX
47 wxUninitialize();
48
49 return ret;
50}
bool init_unit_test()
Main file for the pcbnew tests to be compiled.

References init_unit_test().