gstreamer_core/tsrc/check/libs/typefindhelper/src/typefindhelper.c
branchRCL_3
changeset 29 567bb019e3e3
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
6:9b2c3c7a1a9c 29:567bb019e3e3
    58 
    58 
    59 #if EMULATOR
    59 #if EMULATOR
    60 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    60 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    61 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    61 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    62 #else 
    62 #else 
    63 extern GList *buffers;
    63 IMPORT_C extern GList *buffers;
    64 #endif
    64 #endif
    65 
    65 
    66 
    66 
    67 #if EMULATOR
    67 #if EMULATOR
    68 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*)
    68 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*)
   153 
   153 
   154 //char* xmlfile = "typefindhelper";
   154 //char* xmlfile = "typefindhelper";
   155 
   155 
   156 void create_xml(int result)
   156 void create_xml(int result)
   157 {
   157 {
       
   158 
   158     if(result)
   159     if(result)
       
   160     {
   159         assert_failed = 1;
   161         assert_failed = 1;
   160     
   162     } 
       
   163 
   161     testResultXml(xmlfile);
   164     testResultXml(xmlfile);
   162     close_log_file();
   165     close_log_file();
       
   166 
       
   167     if(result)
       
   168     {
       
   169         exit (-1);
       
   170     }    
       
   171 
   163 }
   172 }
   164 
   173 
   165 /* make sure the entire data in the buffer is available for peeking */
   174 /* make sure the entire data in the buffer is available for peeking */
   166 void test_buffer_range()
   175 void test_buffer_range()
   167 {
   176 {