10#ifndef rtitest_connext_interface_h
11#define rtitest_connext_interface_h
13#include "rtitest/test_dll.h"
14#include "rtitest/test_types.h"
26#define RTITestConnext_setup() \
29 RTILog_g_enable_backtrace_upon_sigsegv = RTI_TRUE; \
32 RTILog_g_detectPrecondition = RTI_TRUE; \
33 RTITestConnext_configurePreconditionDetection( \
34 &RTILog_g_detectPrecondition, \
35 &RTILog_g_preconditionDetected); \
36 RTITestConnext_configureAbortOnError(&RTILog_abortOnFatalError)
48extern RTITestDllExport
void RTITestConnext_configurePreconditionDetection(
49 RTIBool *detectPrecondition,
50 RTIBool *preconditionDetected);
58extern RTITestDllExport
void RTITestConnext_setPreconditionDetection(
59 RTIBool detectPrecondition);
67extern RTITestDllExport RTIBool
68RTITestConnext_isPreconditionsDetectionEnabled(
void);
75extern RTITestDllExport RTIBool RTITestConnext_isPreconditionDetected(
void);
83extern RTITestDllExport
void RTITestConnext_resetPreconditionDetection(
void);
89extern RTITestDllExport
void RTITestConnext_cachePreconditionDetection(
void);
98extern RTITestDllExport RTIBool
99RTITestConnext_getPreconditionDetectionCache(
void);
109extern RTITestDllExport
void RTITestConnext_configureAbortOnError(
110 RTIBool *abortOnError);
116extern RTITestDllExport
void RTITestConnext_enableAbortOnError(
void);
123extern RTITestDllExport RTIBool RTITestConnext_isAbortOnErrorEnabled(
void);
143#define RTITestConnextLogger_log(instrumentationBit__, logMessage__, ...) \
144 if (RTITestLog_g_instrumentationMask & (instrumentationBit__)) \
145 RTILogMessageParamString_printWithParams( \
146 RTI_LOG_PRINT_FORMAT_MASK_ALL, \
147 (RTITestLogBitmap) (instrumentationBit__), \
174#define RTITestConnextLogger_logWithFunctionName( \
176 instrumentationBit__, \
179 if (RTITestLog_g_instrumentationMask & (instrumentationBit__)) \
180 RTILogMessage_printWithParams( \
182 & (RTILogPrintFormatKindMask) ~( \
183 RTI_LOG_PRINT_BIT_LOG_LEVEL), \
184 (RTITestLogBitmap) (instrumentationBit__), \
200#define RTITestConnextLogger_logParamString(instrumentationBit__, ...) \
201 if ((RTITestLog_g_instrumentationMask) & (instrumentationBit__)) \
202 RTILogParamString_printUnformatted( \
203 (RTITestLogBitmap) (instrumentationBit__), \