Lines Matching refs:ret
28 int ret; in log_test() local
39 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
40 if (ret < 0) in log_test()
41 return ret; in log_test()
43 ret = log_remove_filter("console", ret); in log_test()
44 if (ret < 0) in log_test()
45 return ret; in log_test()
54 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
55 if (ret < 0) in log_test()
56 return ret; in log_test()
58 ret = log_remove_filter("console", ret); in log_test()
59 if (ret < 0) in log_test()
60 return ret; in log_test()
69 ret = log_add_filter("console", cat_list, LOGL_MAX, NULL); in log_test()
70 if (ret < 0) in log_test()
71 return ret; in log_test()
73 ret = log_remove_filter("console", ret); in log_test()
74 if (ret < 0) in log_test()
75 return ret; in log_test()
80 ret = log_add_filter("console", NULL, LOGL_MAX, "file"); in log_test()
81 if (ret < 0) in log_test()
82 return ret; in log_test()
84 ret = log_remove_filter("console", ret); in log_test()
85 if (ret < 0) in log_test()
86 return ret; in log_test()
91 ret = log_add_filter("console", NULL, LOGL_MAX, "file"); in log_test()
92 if (ret < 0) in log_test()
93 return ret; in log_test()
95 ret = log_remove_filter("console", ret); in log_test()
96 if (ret < 0) in log_test()
97 return ret; in log_test()
102 ret = log_add_filter("console", NULL, LOGL_MAX, "file,file2"); in log_test()
103 if (ret < 0) in log_test()
104 return ret; in log_test()
106 ret = log_remove_filter("console", ret); in log_test()
107 if (ret < 0) in log_test()
108 return ret; in log_test()
113 ret = log_add_filter("console", NULL, LOGL_MAX, in log_test()
115 if (ret < 0) in log_test()
116 return ret; in log_test()
118 ret = log_remove_filter("console", ret); in log_test()
119 if (ret < 0) in log_test()
120 return ret; in log_test()
125 ret = log_add_filter("console", NULL, LOGL_WARNING, NULL); in log_test()
126 if (ret < 0) in log_test()
127 return ret; in log_test()
129 ret = log_remove_filter("console", ret); in log_test()
130 if (ret < 0) in log_test()
131 return ret; in log_test()
138 ret = log_add_filter("console", NULL, LOGL_WARNING, NULL); in log_test()
139 if (ret < 0) in log_test()
140 return ret; in log_test()
141 filt1 = ret; in log_test()
142 ret = log_add_filter("console", NULL, LOGL_MAX, NULL); in log_test()
143 if (ret < 0) in log_test()
144 return ret; in log_test()
145 filt2 = ret; in log_test()
147 ret = log_remove_filter("console", filt1); in log_test()
148 if (ret < 0) in log_test()
149 return ret; in log_test()
150 ret = log_remove_filter("console", filt2); in log_test()
151 if (ret < 0) in log_test()
152 return ret; in log_test()
159 ret = log_add_filter("console", NULL, LOGL_MAX, "file)"); in log_test()
160 if (ret < 0) in log_test()
161 return ret; in log_test()
162 filt1 = ret; in log_test()
163 ret = log_add_filter("console", NULL, LOGL_MAX, "file2"); in log_test()
164 if (ret < 0) in log_test()
165 return ret; in log_test()
166 filt2 = ret; in log_test()
167 ret = log_add_filter("console", NULL, LOGL_MAX, in log_test()
169 if (ret < 0) in log_test()
170 return ret; in log_test()
171 filt3 = ret; in log_test()
173 ret = log_remove_filter("console", filt1); in log_test()
174 if (ret < 0) in log_test()
175 return ret; in log_test()
176 ret = log_remove_filter("console", filt2); in log_test()
177 if (ret < 0) in log_test()
178 return ret; in log_test()
179 ret = log_remove_filter("console", filt3); in log_test()
180 if (ret < 0) in log_test()
181 return ret; in log_test()
193 int ret; in do_log_test() local
198 ret = log_test(testnum); in do_log_test()
199 if (ret) in do_log_test()
200 printf("Test failure (err=%d)\n", ret); in do_log_test()
202 return ret ? CMD_RET_FAILURE : 0; in do_log_test()