}
if (!found)
- ck_abort_msg("Invalid device type %d\n", which);
+ litest_abort_msg("Invalid device type %d\n", which);
d = zalloc(sizeof(*d));
d->which = which;
litest_assert_event_type(event, type);
break;
default:
- ck_abort_msg("%s: invalid touch type %d\n", __func__, type);
+ litest_abort_msg("%s: invalid touch type %d\n", __func__, type);
}
touch = libinput_event_get_touch_event(event);
ck_assert_double_eq(v120, 120.0 * direction);
break;
default:
- ck_abort();
+ litest_abort_msg("Invalid dial code");
}
libinput_event_destroy(ev);
}
* causing a removed event for the first one */
if (type != LIBINPUT_EVENT_DEVICE_ADDED &&
type != LIBINPUT_EVENT_DEVICE_REMOVED)
- ck_abort();
+ litest_abort_msg("Unexpected event type");
libinput_event_destroy(event);
nevents++;
}
have_switch_toggle = true;
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected event type");
}
libinput_event_destroy(event);
}
have_switch_toggle = true;
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected event type");
}
libinput_event_destroy(event);
}
struct libinput *li = dev->libinput;
struct libinput_event *event;
struct libinput_event_tablet_tool *tev;
- struct litest_device *dev2;
+ struct litest_device *dev2 = NULL;
struct axis_replacement axes[] = {
{ ABS_DISTANCE, 10 },
{ ABS_PRESSURE, 0 },
dev2 = litest_add_device(li, LITEST_DELL_CANVAS_TOTEM);
break;
default:
- ck_abort();
+ litest_abort_msg("Invalid button code");
}
litest_tablet_proximity_in(dev, 10, 10, axes);
struct libinput_event_tablet_tool *tablet_event;
struct libinput_event *event;
struct libinput_tablet_tool *tool;
- uint64_t tool_id;
+ uint64_t tool_id = 0;
litest_drain_events(li);
tool_id = 2083;
break;
default:
- ck_abort();
+ litest_abort_msg("Invalid button code");
}
ck_assert(tool_id == libinput_tablet_tool_get_tool_id(tool));
litest_sendevents_off(tp);
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected suspend option");
}
litest_drain_events(li);
litest_sendevents_on(tp);
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected suspend option");
}
assert_touchpad_does_not_move(tp);
litest_sendevents_on(tp);
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected suspend option");
}
litest_drain_events(li);
litest_sendevents_off(tp);
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected suspend option");
}
litest_drain_events(li);
litest_sendevents_off(tp);
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected suspend option");
}
assert_touchpad_does_not_move(tp);
litest_sendevents_on(tp);
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected suspend option");
}
litest_drain_events(li);
litest_sendevents_on(tp);
break;
default:
- ck_abort();
+ litest_abort_msg("Unexpected suspend option");
}
litest_drain_events(li);