|
1 //createelementbase.c |
1 /* |
2 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
3 * Copyright © 2005 Nokia Corporation. |
3 * |
4 * This material, including documentation and any related |
4 * This library is free software; you can redistribute it and/or |
5 * computer progrs, is protected by copyright controlled by |
5 * modify it under the terms of the GNU Lesser General Public |
6 * Nokia Corporation. All rights are reserved. Copying, |
6 * License as published by the Free Software Foundation; either |
7 * including reproducing, storing, adapting or translating, any |
7 * version 2 of the License, or (at your option) any later version. |
8 * or all of this material requires the prior written consent of |
8 * |
9 * Nokia Corporation. This material also contains confidential |
9 * This library is distributed in the hope that it will be useful, |
10 * information which may not be disclosed to others without the |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 * prior written consent of Nokia Corporation. |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 * ============================================================================ |
12 * Lesser General Public License for more details. |
13 */ |
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public |
|
15 * License along with this library; if not, write to the |
|
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
17 * Boston, MA 02111-1307, USA. |
|
18 * |
|
19 * Description: |
|
20 * |
|
21 */ |
|
22 |
14 |
23 |
15 |
24 #ifdef HAVE_CONFIG_H |
16 #ifdef HAVE_CONFIG_H |
25 # include <config.h> |
17 # include <config.h> |
26 #endif |
18 #endif |
33 #include "std_log_result.h" |
25 #include "std_log_result.h" |
34 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
26 #define LOG_FILENAME_LINE __FILE__, __LINE__ |
35 |
27 |
36 void create_xml(int result) |
28 void create_xml(int result) |
37 { |
29 { |
|
30 |
38 if(result) |
31 if(result) |
|
32 { |
39 assert_failed = 1; |
33 assert_failed = 1; |
40 |
34 } |
|
35 |
41 testResultXml(xmlfile); |
36 testResultXml(xmlfile); |
42 close_log_file(); |
37 close_log_file(); |
|
38 |
|
39 if(result) |
|
40 { |
|
41 exit (-1); |
|
42 } |
|
43 |
43 } |
44 } |
44 #include <gst/check/gstcheck.h> |
45 #include <gst/check/gstcheck.h> |
45 #include "libgstreamer_wsd_solution.h" |
46 #include "libgstreamer_wsd_solution.h" |
46 |
47 |
47 #if EMULATOR |
48 #if EMULATOR |
48 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*) |
49 GET_GLOBAL_VAR_FROM_TLS(buffers,gstcheck,GList*) |
49 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)()) |
50 #define buffers (*GET_GSTREAMER_WSD_VAR_NAME(buffers,gstcheck,g)()) |
50 #else |
51 #else |
51 extern GList *buffers; |
52 IMPORT_C extern GList *buffers; |
52 #endif |
53 #endif |
53 |
54 |
54 |
55 |
55 #if EMULATOR |
56 #if EMULATOR |
56 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |
57 static GET_GLOBAL_VAR_FROM_TLS(raised_critical,gstcheck,gboolean) |