mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2024-12-21 17:59:48 +01:00
tests: fixup C test override checking
This commit is contained in:
parent
5729b9733d
commit
d60e1e01e6
1 changed files with 12 additions and 1 deletions
|
@ -27,11 +27,22 @@ int main(int argc, char** argv) {
|
|||
}
|
||||
|
||||
hyprcursor_cursor_raw_shape_data* shapeData = hyprcursor_get_raw_shape_data(mgr, "left_ptr");
|
||||
if (!shapeData || shapeData->len <= 0) {
|
||||
if (!shapeData) {
|
||||
printf("failed querying left_ptr\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (shapeData->overridenBy) {
|
||||
hyprcursor_cursor_raw_shape_data* ov = hyprcursor_get_raw_shape_data(mgr, shapeData->overridenBy);
|
||||
hyprcursor_raw_shape_data_free(shapeData);
|
||||
shapeData = ov;
|
||||
}
|
||||
|
||||
if (!shapeData || shapeData->len <= 0) {
|
||||
printf("left_ptr has no images\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("left_ptr images: %d\n", shapeData->len);
|
||||
|
||||
for (size_t i = 0; i < shapeData->len; ++i) {
|
||||
|
|
Loading…
Reference in a new issue