Lines Matching refs:proc_cmdline_get_bool

154 TEST(proc_cmdline_get_bool) {  in TEST()  argument
160 assert_se(proc_cmdline_get_bool("", &value) == -EINVAL); in TEST()
161 assert_se(proc_cmdline_get_bool("abc", &value) == 0 && value == false); in TEST()
162 assert_se(proc_cmdline_get_bool("foo_bar", &value) > 0 && value == true); in TEST()
163 assert_se(proc_cmdline_get_bool("foo-bar", &value) > 0 && value == true); in TEST()
164 assert_se(proc_cmdline_get_bool("bar-waldo", &value) > 0 && value == true); in TEST()
165 assert_se(proc_cmdline_get_bool("bar_waldo", &value) > 0 && value == true); in TEST()
166 assert_se(proc_cmdline_get_bool("x_y-z", &value) > 0 && value == false); in TEST()
167 assert_se(proc_cmdline_get_bool("x-y-z", &value) > 0 && value == false); in TEST()
168 assert_se(proc_cmdline_get_bool("x-y_z", &value) > 0 && value == false); in TEST()
169 assert_se(proc_cmdline_get_bool("x_y_z", &value) > 0 && value == false); in TEST()
170 assert_se(proc_cmdline_get_bool("quux", &value) == -EINVAL && value == false); in TEST()
171 assert_se(proc_cmdline_get_bool("da", &value) > 0 && value == true); in TEST()
172 assert_se(proc_cmdline_get_bool("the", &value) > 0 && value == true); in TEST()
182 assert_se(proc_cmdline_get_bool("", &value) == -EINVAL); in TEST()
183 assert_se(proc_cmdline_get_bool("abc", &value) == 0 && value == false); in TEST()
184 assert_se(proc_cmdline_get_bool("foo_bar", &value) > 0 && value == true); in TEST()
185 assert_se(proc_cmdline_get_bool("foo-bar", &value) > 0 && value == true); in TEST()
186 assert_se(proc_cmdline_get_bool("bar-waldo", &value) > 0 && value == true); in TEST()
187 assert_se(proc_cmdline_get_bool("bar_waldo", &value) > 0 && value == true); in TEST()
188 assert_se(proc_cmdline_get_bool("x_y-z", &value) > 0 && value == false); in TEST()
189 assert_se(proc_cmdline_get_bool("x-y-z", &value) > 0 && value == false); in TEST()
190 assert_se(proc_cmdline_get_bool("x-y_z", &value) > 0 && value == false); in TEST()
191 assert_se(proc_cmdline_get_bool("x_y_z", &value) > 0 && value == false); in TEST()
192 assert_se(proc_cmdline_get_bool("quux", &value) == -EINVAL && value == false); in TEST()
193 assert_se(proc_cmdline_get_bool("da", &value) > 0 && value == true); in TEST()
194 assert_se(proc_cmdline_get_bool("the", &value) > 0 && value == true); in TEST()