17 #ifndef _TEST_DRIVERS_
18 #define _TEST_DRIVERS_
20 GlobusDebugDeclare(GLOBUS_XIO_TEST);
24 GLOBUS_XIO_TEST_DEBUG_TRACE = 1,
25 GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE = 2,
26 GLOBUS_XIO_TEST_DEBUG_INFO_VERBOSE = 4,
27 GLOBUS_XIO_TEST_DEBUG_STATE = 8
30 #define GlobusXIOTestDebugPrintf(level, message) \
31 GlobusDebugPrintf(GLOBUS_XIO_TEST, level, message)
32 #define GlobusXIOTestDebugEnter() \
33 GlobusXIOTestDebugPrintf( \
34 GLOBUS_XIO_TEST_DEBUG_TRACE, \
35 ("[%s] Entering\n", _xio_name))
37 #define GlobusXIOTestDebugExit() \
38 GlobusXIOTestDebugPrintf( \
39 GLOBUS_XIO_TEST_DEBUG_TRACE, \
40 ("[%s] Exiting\n", _xio_name))
42 #define GlobusXIOTestDebugExitWithError() \
43 GlobusXIOTestDebugPrintf( \
44 GLOBUS_XIO_TEST_DEBUG_TRACE, \
45 ("[%s] Exiting with error\n", _xio_name))
47 #define GlobusXIOTestDebugInternalEnter() \
48 GlobusXIOTestDebugPrintf( \
49 GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE, \
50 ("[%s] I Entering\n", _xio_name))
52 #define GlobusXIOTestDebugInternalExit() \
53 GlobusXIOTestDebugPrintf( \
54 GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE, \
55 ("[%s] I Exiting\n", _xio_name))
57 #define GlobusXIOTestDebugInternalExitWithError() \
58 GlobusXIOTestDebugPrintf( \
59 GLOBUS_XIO_TEST_DEBUG_INTERNAL_TRACE, \
60 ("[%s] I Exiting with error\n", _xio_name))