gst_plugins_base/tsrc/check/elements/audiorate/src/audiorate.c
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
    34 #include <gst/check/gstcheck.h>
    34 #include <gst/check/gstcheck.h>
    35 
    35 
    36 
    36 
    37 void create_xml(int result)
    37 void create_xml(int result)
    38 {
    38 {
    39 
       
    40     if(result)
    39     if(result)
    41     {
       
    42         assert_failed = 1;
    40         assert_failed = 1;
    43     } 
    41     
    44 
       
    45     testResultXml(xmlfile);
    42     testResultXml(xmlfile);
    46     close_log_file();
    43     close_log_file();
    47 
       
    48     if(result)
       
    49     {
       
    50         exit (-1);
       
    51     }    
       
    52 
       
    53 }
    44 }
    54 
    45 
    55 #include "libgstreamer_wsd_solution.h" 
    46 #include "libgstreamer_wsd_solution.h" 
    56 
    47 
    57 #if EMULATOR
    48 #if EMULATOR
    58 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    49 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*)
    59 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    50 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)())
    60 #else 
    51 #else 
    61 IMPORT_C extern GList *buffers;
    52 extern GList *buffers;
    62 #endif
    53 #endif
    63 //---------
    54 //---------
    64 #if EMULATOR
    55 #if EMULATOR
    65 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean)
    56 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean)
    66 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)())
    57 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)())
    99 
    90 
   100 #if EMULATOR
    91 #if EMULATOR
   101 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*)
    92 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*)
   102 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)())
    93 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)())
   103 #else 
    94 #else 
   104 IMPORT_C extern GList *thread_list;
    95 extern GList *thread_list;
   105 #endif
    96 #endif
   106 
    97 
   107 //GMutex *mutex;
    98 //GMutex *mutex;
   108 #if EMULATOR
    99 #if EMULATOR
   109 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*)
   100 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*)