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