Lines Matching +full:2 +full:v

9  * This work is licensed under the terms of the GNU GPL, version 2 or later.
40 Visitor *v; in setup_fixture() local
46 v = opts_visitor_new(opts); in setup_fixture()
47 visit_type_UserDefOptions(v, NULL, &f->userdef, &f->err); in setup_fixture()
48 visit_free(v); in setup_fixture()
182 Visitor *v; in test_opts_range_unvisited() local
184 opts = qemu_opts_parse(qemu_find_opts("userdef"), "ilist=0-2", false, in test_opts_range_unvisited()
187 v = opts_visitor_new(opts); in test_opts_range_unvisited()
189 visit_start_struct(v, NULL, NULL, 0, &error_abort); in test_opts_range_unvisited()
192 visit_start_list(v, "ilist", (GenericList **)&list, sizeof(*list), in test_opts_range_unvisited()
195 visit_type_int(v, NULL, &tail->value, &error_abort); in test_opts_range_unvisited()
197 tail = (intList *)visit_next_list(v, (GenericList *)tail, sizeof(*list)); in test_opts_range_unvisited()
199 visit_type_int(v, NULL, &tail->value, &error_abort); in test_opts_range_unvisited()
201 tail = (intList *)visit_next_list(v, (GenericList *)tail, sizeof(*list)); in test_opts_range_unvisited()
203 visit_check_list(v, &error_abort); /* unvisited tail ignored until... */ in test_opts_range_unvisited()
204 visit_end_list(v, (void **)&list); in test_opts_range_unvisited()
206 visit_check_struct(v, &err); /* ...here */ in test_opts_range_unvisited()
208 visit_end_struct(v, NULL); in test_opts_range_unvisited()
211 visit_free(v); in test_opts_range_unvisited()
222 Visitor *v; in test_opts_range_beyond() local
228 v = opts_visitor_new(opts); in test_opts_range_beyond()
230 visit_start_struct(v, NULL, NULL, 0, &error_abort); in test_opts_range_beyond()
233 visit_start_list(v, "ilist", (GenericList **)&list, sizeof(*list), in test_opts_range_beyond()
236 visit_type_int(v, NULL, &tail->value, &error_abort); in test_opts_range_beyond()
238 tail = (intList *)visit_next_list(v, (GenericList *)tail, sizeof(*tail)); in test_opts_range_beyond()
240 visit_type_int(v, NULL, &val, &err); in test_opts_range_beyond()
242 visit_end_list(v, (void **)&list); in test_opts_range_beyond()
244 visit_check_struct(v, &error_abort); in test_opts_range_beyond()
245 visit_end_struct(v, NULL); in test_opts_range_beyond()
248 visit_free(v); in test_opts_range_beyond()
257 Visitor *v; in test_opts_dict_unvisited() local
263 v = opts_visitor_new(opts); in test_opts_dict_unvisited()
264 visit_type_UserDefOptions(v, NULL, &userdef, &err); in test_opts_dict_unvisited()
266 visit_free(v); in test_opts_dict_unvisited()
299 "i64=-1-0,u64=12-16,u64=2-3,i64=-11--9,u64=57,u16=9,i64=5-5," in main()
301 "i64=7,u16=18,i64=2-3,u16=6,u64=54-55,u64=0,u64=18-20,u64=33-43," in main()
344 add_test("/visitor/opts/u64/range/2big", &expect_fail, "u64=0-65536"); in main()
351 add_test("/visitor/opts/i64/range/2big/pos", &expect_fail, in main()
357 add_test("/visitor/opts/i64/range/2big/neg", &expect_fail, in main()
359 add_test("/visitor/opts/i64/range/2big/full", &expect_fail, in main()