Changeset 16 in libcf for trunk/test/test.c
- Timestamp:
- 02/01/13 09:37:19 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/test.c
r15 r16 25 25 gLogCtx = CF_Log_CreateCtx (file, CF_LOG_BUFFER_DEFAULT); 26 26 if (gDebugCtx == NULL) 27 CF_DEBUG_ TRACE (gDebugCtx, "create debug ctx error\n");27 CF_DEBUG_PRINT (stderr, "create debug ctx error\n"); 28 28 29 29 for (i = 0 ; i < 10000 ; i++) … … 49 49 CF_DEBUG_CALLSTACK_PUSH (gDebugCtx); 50 50 51 fd = CF_File_Open (file, RO);51 fd = CF_File_Open (file, CF_FILE_RO); 52 52 if (fd < 0) 53 53 CF_DEBUG_TRACE (gDebugCtx, "what the ... file open ?\n"); … … 101 101 102 102 if (gLogCtx == NULL) 103 CF_DEBUG_ TRACE (gDebugCtx, "create log ctx error\n");103 CF_DEBUG_PRINT (stderr, "create log ctx error\n"); 104 104 105 105 CF_DEBUG_CALLSTACK_PUSH (gDebugCtx); 106 106 107 CF_DEBUG_ TRACE (gDebugCtx, " == LOG TEST ==\n");107 CF_DEBUG_PRINT (stderr, " == LOG TEST ==\n"); 108 108 log_test ("LOG_TEST"); 109 109 110 CF_DEBUG_ TRACE (gDebugCtx, " == FILE READ TEST ==\n");110 CF_DEBUG_PRINT (stderr, " == FILE READ TEST ==\n"); 111 111 file_test ("FILE_READ_TEST"); 112 112 113 CF_DEBUG_ TRACE (gDebugCtx, " == CALLSTACK TEST ==\n");113 CF_DEBUG_PRINT (stderr, " == CALLSTACK TEST ==\n"); 114 114 callee1 (); 115 115 116 116 CF_DEBUG_CALLSTACK_POP (gDebugCtx, &gDebugCallstack); 117 117 118 CF_DEBUG_ TRACE (gDebugCtx, " == END OF TEST ==\n");118 CF_DEBUG_PRINT (stderr, " == END OF TEST ==\n"); 119 119 CF_DEBUG_TRACE (gDebugCtx, "here is the end of function [file:%s line:%d func:%s]\n", 120 120 gDebugCallstack.file,
Note:
See TracChangeset
for help on using the changeset viewer.