gstreamer_core/tsrc/check/gst/gstparamspecs/src/gstparamspecs.c
branchRCL_3
changeset 29 567bb019e3e3
parent 0 0e761a78d257
child 30 7e817e7e631c
equal deleted inserted replaced
6:9b2c3c7a1a9c 29:567bb019e3e3
    24 #include "std_log_result.h" 
    24 #include "std_log_result.h" 
    25 #define LOG_FILENAME_LINE __FILE__, __LINE__
    25 #define LOG_FILENAME_LINE __FILE__, __LINE__
    26 
    26 
    27 void create_xml(int result)
    27 void create_xml(int result)
    28 {
    28 {
       
    29 
    29     if(result)
    30     if(result)
       
    31     {
    30         assert_failed = 1;
    32         assert_failed = 1;
    31     
    33     } 
       
    34 
    32     testResultXml(xmlfile);
    35     testResultXml(xmlfile);
    33     close_log_file();
    36     close_log_file();
       
    37 
       
    38     if(result)
       
    39     {
       
    40         exit (-1);
       
    41     }    
       
    42 
    34 }
    43 }
    35 
    44 
    36 
    45 
    37 #include <gst/check/gstcheck.h>
    46 #include <gst/check/gstcheck.h>
    38 #include <gst/gst.h>
    47 #include <gst/gst.h>
    40 
    49 
    41 #if EMULATOR
    50 #if EMULATOR
    42 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean)
    51 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean)
    43 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)())
    52 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)())
    44 #else 
    53 #else 
    45 extern gboolean _gst_check_raised_critical;
    54 IMPORT_C extern gboolean _gst_check_raised_critical;
    46 #endif
    55 #endif
    47 
    56 
    48 #if EMULATOR
    57 #if EMULATOR
    49 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean)
    58 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean)
    50 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)())
    59 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)())
    51 #else 
    60 #else 
    52 extern gboolean _gst_check_expecting_log;
    61 IMPORT_C extern gboolean _gst_check_expecting_log;
    53 #endif
    62 #endif
    54 
    63 
    55 /* some minimal dummy object */
    64 /* some minimal dummy object */
    56 #define GST_TYPE_DUMMY_OBJ gst_dummy_obj_get_type()
    65 #define GST_TYPE_DUMMY_OBJ gst_dummy_obj_get_type()
    57 
    66