[Request]Update Flora license version
[apps/home/libslp-alarm.git] / TC / unit / utc_alarmdb_fini_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_fini_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         int ret;
37         ret = alarmdb_init(NULL);
38         if (!ret)
39                 tet_printf("\n alarmdb_init succeed!");
40 }
41
42 static void cleanup()
43 {
44         tet_printf("\n TC End");
45         /* add your code here */
46
47 }
48
49 /***************************************
50 * Add your callback function here
51 * if needed
52 ***************************************/
53
54 /***************************************
55 * add your Test Cases
56 * e.g.,
57 * static void utc_ApplicationLib_recurGetDayOfWeek_01()
58 * {
59 *   int ret;
60 *
61 *   ret = target_api();
62 *   if(ret == 1)
63 *       tet_result(TET_PASS);
64 *   else
65 *       tet_result(TET_FAIL);
66 * }
67 *
68 * static void utc_ApplicationLib_recurGetDayOfWeek_02()
69 * {
70 *       code..
71 *       condition1
72 *           tet_result(TET_PASS);
73 *       condition2
74 *           tet_result(TET_FAIL);
75 * }
76 *
77 ***************************************/
78
79 static void utc_alarmdb_fini_func_01()
80 {
81         alarmdb_fini();
82         tet_result(TET_PASS);
83 }