38 |
38 |
39 #if EMULATOR |
39 #if EMULATOR |
40 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |
40 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |
41 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)()) |
41 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)()) |
42 #else |
42 #else |
43 IMPORT_C extern gboolean _gst_check_raised_critical; |
43 extern gboolean _gst_check_raised_critical; |
44 #endif |
44 #endif |
45 |
45 |
46 //gboolean _gst_check_expecting_log = FALSE; |
46 //gboolean _gst_check_expecting_log = FALSE; |
47 #if EMULATOR |
47 #if EMULATOR |
48 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean) |
48 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean) |
49 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)()) |
49 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)()) |
50 #else |
50 #else |
51 IMPORT_C extern gboolean _gst_check_expecting_log; |
51 extern gboolean _gst_check_expecting_log; |
52 #endif |
52 #endif |
53 |
53 |
54 void create_xml(int result) |
54 void create_xml(int result) |
55 { |
55 { |
56 |
|
57 if(result) |
56 if(result) |
58 { |
|
59 assert_failed = 1; |
57 assert_failed = 1; |
60 } |
58 |
61 |
|
62 testResultXml(xmlfile); |
59 testResultXml(xmlfile); |
63 close_log_file(); |
60 close_log_file(); |
64 |
|
65 if(result) |
|
66 { |
|
67 exit (-1); |
|
68 } |
|
69 |
|
70 } |
61 } |
71 |
62 |
72 |
63 |
73 |
64 |
74 /* These are from the current/old videotestsrc; we check our new public API |
65 /* These are from the current/old videotestsrc; we check our new public API |