4 static void startup(void);
5 static void cleanup(void);
7 void (*tet_startup)(void) = startup;
8 void (*tet_cleanup)(void) = cleanup;
10 static void utc_SystemFW_sysconf_set_vip_func_01(void);
11 static void utc_SystemFW_sysconf_set_vip_func_02(void);
14 POSITIVE_TC_IDX = 0x01,
18 struct tet_testlist tet_testlist[] = {
19 { utc_SystemFW_sysconf_set_vip_func_01, POSITIVE_TC_IDX },
20 { utc_SystemFW_sysconf_set_vip_func_02, NEGATIVE_TC_IDX },
24 static void startup(void)
26 system("mv /usr/bin/restarter /usr/bin/restarter1");
29 static void cleanup(void)
34 * @brief Positive test case of sysconf_set_vip()
36 static void utc_SystemFW_sysconf_set_vip_func_01(void)
41 ret_val = sysconf_set_vip(pid);
43 tet_infoline("sysconf_set_vip() failed in positive test case");
51 * @brief Negative test case of ug_init sysconf_set_vip()
53 static void utc_SystemFW_sysconf_set_vip_func_02(void)
57 r = sysconf_set_vip(-1);
60 tet_infoline("sysconf_set_vip() failed in negative test case");