[Request]Update Flora license version
[apps/home/libslp-alarm.git] / TC / unit / utc_alarmdb_init_func.c
1 /*
2 *
3 * Copyright 2012  Samsung Electronics Co., Ltd
4 *
5 * Licensed under the Flora License, Version 1.1 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *    http://floralicense.org/license/
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 /***************************************
20 * add your header file here
21 * e.g.,
22 * #include "utc_ApplicationLib_recurGetDayOfWeek_func.h"
23 ***************************************/
24 #include "utc_alarmdb_init_func.h"
25
26 /***************************************
27 * add Test Case Wide Declarations
28 * e.g.,
29 * static char msg[256];
30 ***************************************/
31
32 static void startup()
33 {
34         tet_printf("\n TC startup");
35         /* add your code here */
36
37 }
38
39 static void cleanup()
40 {
41         tet_printf("\n TC End");
42         /* add your code here */
43         alarmdb_fini();
44
45 }
46
47 /***************************************
48 * Add your callback function here
49 * if needed
50 ***************************************/
51
52 /***************************************
53 * add your Test Cases
54 * e.g.,
55 * static void utc_ApplicationLib_recurGetDayOfWeek_01()
56 * {
57 *   int ret;
58 *
59 *   ret = target_api();
60 *   if(ret == 1)
61 *       tet_result(TET_PASS);
62 *   else
63 *       tet_result(TET_FAIL);
64 * }
65 *
66 * static void utc_ApplicationLib_recurGetDayOfWeek_02()
67 * {
68 *       code..
69 *       condition1
70 *           tet_result(TET_PASS);
71 *       condition2
72 *           tet_result(TET_FAIL);
73 * }
74 *
75 ***************************************/
76
77 static void utc_alarmdb_init_func_01()
78 {
79         int ret;
80
81         ret = alarmdb_init(NULL);
82         if (ret == 0)
83                 tet_result(TET_PASS);
84         else
85                 tet_result(TET_FAIL);
86 }