Initialize Tizen 2.3
[framework/system/libslp-pm.git] / TC / unit / utc_MODULE_API_func.c.in
1 #include <tet_api.h>
2
3 static void startup(void);
4 static void cleanup(void);
5
6 void (*tet_startup)(void) = startup;
7 void (*tet_cleanup)(void) = cleanup;
8
9 static void utc_@MODULE@_@API@_func_01(void);
10 static void utc_@MODULE@_@API@_func_02(void);
11
12 enum {
13         POSITIVE_TC_IDX = 0x01,
14         NEGATIVE_TC_IDX,
15 };
16
17 struct tet_testlist tet_testlist[] = {
18         { utc_@MODULE@_@API@_func_01, POSITIVE_TC_IDX },
19         { utc_@MODULE@_@API@_func_02, NEGATIVE_TC_IDX },
20 };
21
22 static void startup(void)
23 {
24 }
25
26 static void cleanup(void)
27 {
28 }
29
30 /**
31  * @brief Positive test case of @API@()
32  */
33 static void utc_@MODULE@_@API@_func_01(void)
34 {
35         int r = 0;
36
37 /*
38         r = @API@(...);
39 */
40         if (r) {
41                 tet_infoline("@API@() failed in positive test case");
42                 tet_result(TET_FAIL);
43                 return;
44         }
45         tet_result(TET_PASS);
46 }
47
48 /**
49  * @brief Negative test case of ug_init @API@()
50  */
51 static void utc_@MODULE@_@API@_func_02(void)
52 {
53         int r = 0;
54
55 /*
56         r = @API@(...);
57 */
58         if (r) {
59                 tet_infoline("@API@() failed in negative test case");
60                 tet_result(TET_FAIL);
61                 return;
62         }
63         tet_result(TET_PASS);
64 }