Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTest::CrashHandler Namespace Reference

Classes

class  FatalSignalHandler
 

Functions

bool alreadyDebugging ()
 
void maybeDisableCoreDump ()
 
void prepareStackTrace ()
 
void printTestRunTime ()
 
void generateStackTrace ()
 
void blockUnixSignals ()
 

Variables

static DebuggerProgram debugger = None
 

Function Documentation

◆ alreadyDebugging()

bool QTest::CrashHandler::alreadyDebugging ( )

Definition at line 171 of file qtestcrashhandler.cpp.

References open(), and read().

Referenced by generateStackTrace(), and QTest::TestMethods::invokeTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ blockUnixSignals()

void QTest::CrashHandler::blockUnixSignals ( )
inline

Definition at line 245 of file qtestcrashhandler_p.h.

◆ generateStackTrace()

void QTest::CrashHandler::generateStackTrace ( )

Definition at line 325 of file qtestcrashhandler.cpp.

References alreadyDebugging(), debugger, None, QT_EINTR_LOOP, ret, and void.

+ Here is the call graph for this function:

◆ maybeDisableCoreDump()

void QTest::CrashHandler::maybeDisableCoreDump ( )

Definition at line 232 of file qtestcrashhandler.cpp.

References ok, qEnvironmentVariableIntValue(), and qWarning.

+ Here is the call graph for this function:

◆ prepareStackTrace()

Q_TESTLIB_EXPORT void QTest::CrashHandler::prepareStackTrace ( )

Definition at line 248 of file qtestcrashhandler.cpp.

References debugger, None, ok, and qEnvironmentVariableIntValue().

Referenced by quick_test_main_with_setup().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ printTestRunTime()

void QTest::CrashHandler::printTestRunTime ( )

Definition at line 315 of file qtestcrashhandler.cpp.

References QTest::currentTestFunction(), QTestLog::msecsFunctionTime(), QTestLog::msecsTotalTime(), and qRound().

+ Here is the call graph for this function:

Variable Documentation

◆ debugger

DebuggerProgram QTest::CrashHandler::debugger = None
static

Definition at line 247 of file qtestcrashhandler.cpp.

Referenced by generateStackTrace(), and prepareStackTrace().