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