struct libinput_event *ev;
struct libinput_event_keyboard *kev;
int i;
- int seat_key_count;
+ int seat_key_count = 0;
int expected_key_button_count = 0;
char device_name[255];
}
t = zalloc(sizeof(*t));
+ assert(t != NULL);
t->name = strdup(test_name);
t->tc = tcase_create(test_name);
list_insert(&suite->tests, &t->node);
}
t = zalloc(sizeof(*t));
+ assert(t != NULL);
t->name = strdup(test_name);
t->tc = tcase_create(test_name);
list_insert(&suite->tests, &t->node);
}
s = zalloc(sizeof(*s));
+ assert(s != NULL);
s->name = strdup(name);
s->suite = suite_create(s->name);
{
struct input_event *ev;
- assert(++d->ntouches_down > 0);
+ assert(d->ntouches_down >= 0);
+ d->ntouches_down++;
send_btntool(d);
{ .type = -1, .code = -1 }
};
- assert(--d->ntouches_down >= 0);
+ assert(d->ntouches_down > 0);
+ d->ntouches_down--;
send_btntool(d);
struct libinput_event *ev;
struct libinput_event_pointer *tev;
int i;
- int seat_button_count;
+ int seat_button_count = 0;
int expected_seat_button_count = 0;
char device_name[255];