Lines Matching refs:success

354 		bool success;
377 bool success;
381 success = parse_dimension_property(tests[i].tag, &x, &y);
382 ck_assert(success == tests[i].success);
383 if (success) {
392 success = parse_dimension_property(NULL, &x, &y);
393 ck_assert(success == false);
401 bool success;
413 bool success;
418 success = parse_switch_reliability_property(tests[i].tag, &r);
419 ck_assert(success == tests[i].success);
420 if (success)
426 success = parse_switch_reliability_property(NULL, &r);
427 ck_assert(success == true);
430 success = parse_switch_reliability_property("foo", NULL);
431 ck_assert(success == false);
441 bool success;
455 bool success;
463 success = parse_calibration_property(tests[i].prop,
465 ck_assert_int_eq(success, tests[i].success);
466 if (success)
479 success = parse_calibration_property(NULL, calibration);
480 ck_assert(success == false);
490 bool success;
506 bool success;
510 success = parse_range_property(tests[i].tag, &hi, &lo);
511 ck_assert(success == tests[i].success);
512 if (success) {
521 success = parse_range_property(NULL, NULL, NULL);
522 ck_assert(success == false);
530 bool success;
541 bool success, b;
545 success = parse_boolean_property(tests[i].tag, &b);
546 ck_assert(success == tests[i].success);
547 if (success)
553 success = parse_boolean_property(NULL, NULL);
554 ck_assert(success == false);
562 bool success;
589 { .prop = "", .success = false },
590 { .prop = "+", .success = false },
591 { .prop = "-", .success = false },
592 { .prop = "!", .success = false },
593 { .prop = "+EV_FOO", .success = false },
594 { .prop = "+EV_KEY;-EV_FOO", .success = false },
595 { .prop = "+BTN_STYLUS;-EV_FOO", .success = false },
596 { .prop = "-BTN_UNKNOWN", .success = false },
597 { .prop = "+BTN_UNKNOWN;+EV_KEY", .success = false },
598 { .prop = "-PR_UNKNOWN", .success = false },
599 { .prop = "-BTN_STYLUS;+PR_UNKNOWN;-ABS_X", .success = false },
600 { .prop = "-EV_REL:0xffff", .success = false },
601 { .prop = "-EV_REL:0x123.", .success = false },
602 { .prop = "-EV_REL:ffff", .success = false },
603 { .prop = "-EV_REL:blah", .success = false },
604 { .prop = "+KEY_A:0x11", .success = false },
605 { .prop = "+EV_KEY:0x11 ", .success = false },
606 { .prop = "+EV_KEY:0x11not", .success = false },
607 { .prop = "none", .success = false },
613 bool success;
618 success = parse_evcode_property(t->prop, events, &nevents);
619 ck_assert(success == t->success);
620 if (!success)
640 bool success;
652 { .prop = "", .success = false },
653 { .prop = "0xff", .success = false },
654 { .prop = "INPUT_PROP", .success = false },
655 { .prop = "INPUT_PROP_FOO", .success = false },
656 { .prop = "INPUT_PROP_FOO;INPUT_PROP_FOO", .success = false },
657 { .prop = "INPUT_PROP_POINTER;INPUT_PROP_FOO", .success = false },
658 { .prop = "none", .success = false },
664 bool success;
669 success = parse_input_prop_property(t->prop, props, &nprops);
670 ck_assert(success == t->success);
671 if (!success)
803 bool success;
828 bool success;
832 success = safe_atoi(tests[i].str, &v);
833 ck_assert(success == tests[i].success);
834 if (success)
862 bool success;
866 success = safe_atoi_base(tests[i].str, &v, 16);
867 ck_assert(success == tests[i].success);
868 if (success)
899 bool success;
903 success = safe_atoi_base(tests[i].str, &v, 8);
904 ck_assert(success == tests[i].success);
905 if (success)
915 bool success;
939 bool success;
943 success = safe_atou(tests[i].str, &v);
944 ck_assert(success == tests[i].success);
945 if (success)
973 bool success;
977 success = safe_atou_base(tests[i].str, &v, 16);
978 ck_assert(success == tests[i].success);
979 if (success)
1010 bool success;
1014 success = safe_atou_base(tests[i].str, &v, 8);
1015 ck_assert(success == tests[i].success);
1016 if (success)
1028 bool success;
1057 bool success;
1061 success = safe_atod(tests[i].str, &v);
1062 ck_assert(success == tests[i].success);
1063 if (success)