apply FSL(Flora Software License)
[apps/home/libslp-alarm.git] / TC / unit / utc_alarmdb_fini_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_fini_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         int ret;
35         ret = alarmdb_init(NULL);
36         if (!ret)
37                 tet_printf("\n alarmdb_init succeed!");
38 }
39
40 static void cleanup()
41 {
42         tet_printf("\n TC End");
43         /* add your code here */
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_fini_func_01()
78 {
79         alarmdb_fini();
80         tet_result(TET_PASS);
81 }