1
0
Fork 0
flightgear/test_suite
Florent Rougon abc4cdb4c0 TestSuite: call flightgear::shutdownQtApp() from fgtest::shutdownTestGlobals()
Some of the unit tests defined with the new test infrastructure[1]
initialize the QApplication; for these tests, it is necessary to ensure
that the QApplication instance is destroyed before exit() begins,
otherwise we get a segfault when run_test_suite terminates (see [2]).

In order to prevent this segfault from happening, call
flightgear::shutdownQtApp() unconditionally from
fgtest::shutdownTestGlobals() as long as Qt support is compiled in
(flightgear::shutdownQtApp() is safe to call even if the QApplication
hasn't been initialized).

[1] Currently, the three PosInitTests::* tests.
[2] https://bugreports.qt.io/browse/QTBUG-48709
2018-03-29 00:39:38 +02:00
..
gui_tests TestSuite: Initial support for a FlightGear test suite based on CppUnit. 2018-03-23 17:26:04 +01:00
helpers TestSuite: call flightgear::shutdownQtApp() from fgtest::shutdownTestGlobals() 2018-03-29 00:39:38 +02:00
simgear_tests TestSuite: Converted the old tests/test-up.cxx program into a simgear unit test. 2018-03-23 17:26:04 +01:00
system_tests TestSuite: Initial support for a FlightGear test suite based on CppUnit. 2018-03-23 17:26:04 +01:00
unit_tests TestSuite: Shift of the globals unit test helper functions into the test suite. 2018-03-23 17:26:05 +01:00
bootstrap.cxx TestSuite: Initial support for a FlightGear test suite based on CppUnit. 2018-03-23 17:26:04 +01:00
CMakeLists.txt TestSuite: Addition of the ENABLE_AUTOTESTING CMake option. 2018-03-23 17:26:05 +01:00
fgCompilerOutputter.cxx TestSuite: Added a debugging command line option. 2018-03-23 17:26:05 +01:00
fgCompilerOutputter.hxx TestSuite: Added a debugging command line option. 2018-03-23 17:26:05 +01:00
fgTestListener.cxx TestSuite: Added a debugging command line option. 2018-03-23 17:26:05 +01:00
fgTestListener.hxx TestSuite: Added a debugging command line option. 2018-03-23 17:26:05 +01:00
fgTestRunner.cxx TestSuite: Added a debugging command line option. 2018-03-23 17:26:05 +01:00
fgTestRunner.hxx TestSuite: Added a debugging command line option. 2018-03-23 17:26:05 +01:00
formatting.cxx TestSuite: Custom output formatting. 2018-03-23 17:26:04 +01:00
formatting.hxx TestSuite: Custom output formatting. 2018-03-23 17:26:04 +01:00
logging.cxx TestSuite: Capture and reporting of all simgear logstream priorities. 2018-03-23 17:26:04 +01:00
logging.hxx TestSuite: Capture and reporting of all simgear logstream priorities. 2018-03-23 17:26:04 +01:00
testSuite.cxx TestSuite: Added a debugging command line option. 2018-03-23 17:26:05 +01:00