29 //gboolean _gst_check_expecting_log = FALSE; |
29 //gboolean _gst_check_expecting_log = FALSE; |
30 #if EMULATOR |
30 #if EMULATOR |
31 static GET_GLOBAL_VAR_FROM_TLS(threads_running,gstcheck,gboolean) |
31 static GET_GLOBAL_VAR_FROM_TLS(threads_running,gstcheck,gboolean) |
32 #define _gst_check_threads_running (*GET_GSTREAMER_WSD_VAR_NAME(threads_running,gstcheck,g)()) |
32 #define _gst_check_threads_running (*GET_GSTREAMER_WSD_VAR_NAME(threads_running,gstcheck,g)()) |
33 #else |
33 #else |
34 IMPORT_C extern gboolean _gst_check_threads_running; |
34 extern gboolean _gst_check_threads_running = FALSE; |
35 #endif |
35 #endif |
36 #if EMULATOR |
36 #if EMULATOR |
37 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |
37 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |
38 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)()) |
38 #define _gst_check_raised_critical (*GET_GSTREAMER_WSD_VAR_NAME(raised_critical,gstcheck,g)()) |
39 #else |
39 #else |
40 IMPORT_C extern gboolean _gst_check_raised_critical; |
40 extern gboolean _gst_check_raised_critical = FALSE; |
41 #endif |
41 #endif |
42 //gboolean _gst_check_raised_warning = FALSE; |
42 //gboolean _gst_check_raised_warning = FALSE; |
43 #if EMULATOR |
43 #if EMULATOR |
44 static GET_GLOBAL_VAR_FROM_TLS(raised_warning,gstcheck,gboolean) |
44 static GET_GLOBAL_VAR_FROM_TLS(raised_warning,gstcheck,gboolean) |
45 #define _gst_check_raised_warning (*GET_GSTREAMER_WSD_VAR_NAME(raised_warning,gstcheck,g)()) |
45 #define _gst_check_raised_warning (*GET_GSTREAMER_WSD_VAR_NAME(raised_warning,gstcheck,g)()) |
46 #else |
46 #else |
47 IMPORT_C extern gboolean _gst_check_raised_warning ; |
47 extern gboolean _gst_check_raised_warning = FALSE; |
48 #endif |
48 #endif |
49 //gboolean _gst_check_expecting_log = FALSE; |
49 //gboolean _gst_check_expecting_log = FALSE; |
50 #if EMULATOR |
50 #if EMULATOR |
51 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean) |
51 static GET_GLOBAL_VAR_FROM_TLS(expecting_log,gstcheck,gboolean) |
52 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)()) |
52 #define _gst_check_expecting_log (*GET_GSTREAMER_WSD_VAR_NAME(expecting_log,gstcheck,g)()) |
53 #else |
53 #else |
54 IMPORT_C extern gboolean _gst_check_expecting_log; |
54 extern gboolean _gst_check_expecting_log = FALSE; |
55 #endif |
55 #endif |
56 #if EMULATOR |
56 #if EMULATOR |
57 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*) |
57 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*) |
58 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)()) |
58 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)()) |
59 #else |
59 #else |
60 IMPORT_C extern GList *buffers; |
60 extern GList *buffers = NULL; |
61 #endif |
61 #endif |
62 |
62 |
63 #if EMULATOR |
63 #if EMULATOR |
64 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*) |
64 GET_GLOBAL_VAR_FROM_TLS(thread_list,gstcheck,GList*) |
65 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)()) |
65 #define thread_list (*GET_GSTREAMER_WSD_VAR_NAME(thread_list,gstcheck,g)()) |
66 #else |
66 #else |
67 IMPORT_C extern GList *thread_list; |
67 extern GList *thread_list; |
68 #endif |
68 #endif |
69 |
69 |
70 //GMutex *mutex; |
70 //GMutex *mutex; |
71 #if EMULATOR |
71 #if EMULATOR |
72 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*) |
72 GET_GLOBAL_VAR_FROM_TLS(mutex,gstcheck,GMutex*) |
73 #define mutex (*GET_GSTREAMER_WSD_VAR_NAME(mutex,gstcheck,g)()) |
73 #define mutex (*GET_GSTREAMER_WSD_VAR_NAME(mutex,gstcheck,g)()) |
74 #else |
74 #else |
75 IMPORT_C extern GMutex *mutex; |
75 extern GMutex *mutex; |
76 #endif |
76 #endif |
77 |
77 |
78 //GCond *start_cond; /* used to notify main thread of thread startups */ |
78 //GCond *start_cond; /* used to notify main thread of thread startups */ |
79 #if EMULATOR |
79 #if EMULATOR |
80 static GET_GLOBAL_VAR_FROM_TLS(start_cond,gstcheck,GCond*) |
80 static GET_GLOBAL_VAR_FROM_TLS(start_cond,gstcheck,GCond*) |
81 #define start_cond (*GET_GSTREAMER_WSD_VAR_NAME(start_cond,gstcheck,g)()) |
81 #define start_cond (*GET_GSTREAMER_WSD_VAR_NAME(start_cond,gstcheck,g)()) |
82 #else |
82 #else |
83 IMPORT_C extern GCond *start_cond; |
83 extern GCond *start_cond; |
84 #endif |
84 #endif |
85 |
85 |
86 //GCond *sync_cond; /* used to synchronize all threads and main thread */ |
86 //GCond *sync_cond; /* used to synchronize all threads and main thread */ |
87 #if EMULATOR |
87 #if EMULATOR |
88 static GET_GLOBAL_VAR_FROM_TLS(sync_cond,gstcheck,GCond*) |
88 static GET_GLOBAL_VAR_FROM_TLS(sync_cond,gstcheck,GCond*) |
89 #define sync_cond (*GET_GSTREAMER_WSD_VAR_NAME(sync_cond,gstcheck,g)()) |
89 #define sync_cond (*GET_GSTREAMER_WSD_VAR_NAME(sync_cond,gstcheck,g)()) |
90 #else |
90 #else |
91 IMPORT_C extern GCond *sync_cond; |
91 extern GCond *sync_cond; |
92 #endif |
92 #endif |
93 |
93 |
94 #define LOG_FILE "c:\\logs\\gstbus_logs.txt" |
94 #define LOG_FILE "c:\\logs\\gstbus_logs.txt" |
95 #include "std_log_result.h" |
95 #include "std_log_result.h" |
96 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
96 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
97 void create_xml(int result) |
97 void create_xml(int result) |
98 { |
98 { |
99 |
|
100 if(result) |
99 if(result) |
101 { |
|
102 assert_failed = 1; |
100 assert_failed = 1; |
103 } |
101 |
104 |
|
105 testResultXml(xmlfile); |
102 testResultXml(xmlfile); |
106 close_log_file(); |
103 close_log_file(); |
107 |
|
108 if(result) |
|
109 { |
|
110 exit (-1); |
|
111 } |
|
112 |
|
113 } |
104 } |
114 |
105 |
115 |
106 |
116 |
107 |
117 |
108 |