First public contribution.
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
20 #include <dbus/dbus.h>
24 #define LOG_FILE "c:\\logs\\Dbus_Maloc1_log1.txt"
25 #include "std_log_result.h"
26 #define LOG_FILENAME_LINE __FILE__, __LINE__
28 void create_xml(int result)
33 testResultXml("Dbus_Maloc");
42 Mem_res = (int*)dbus_malloc(sizeof(int));
46 std_log(LOG_FILENAME_LINE, "Malloc unsuccessful");
47 std_log(LOG_FILENAME_LINE, "FAIL");
53 std_log(LOG_FILENAME_LINE, "malloc successful");
55 rel_res = (int*)dbus_realloc(Mem_res,10);
58 std_log(LOG_FILENAME_LINE, "realloc is unsuccessful");
59 std_log(LOG_FILENAME_LINE, "FAIL");
66 std_log(LOG_FILENAME_LINE, "realloc is successful");
67 std_log(LOG_FILENAME_LINE, "Success");