Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset bd1f9a6d in mainline


Ignore:
Timestamp:
2019-11-30T02:26:03Z (12 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
79949f3
Parents:
94635b30
Message:

Add missing tests

Location:
uspace/srv/hid/display
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/meson.build

    r94635b30 rbd1f9a6d  
    4747        'test/display.c',
    4848        'test/main.c',
     49        'test/seat.c',
    4950        'test/window.c',
    5051)
  • uspace/srv/hid/display/test/display.c

    r94635b30 rbd1f9a6d  
    107107        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    108108
     109        rc = ds_window_create(client, &w1);
     110        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     111
    109112        rc = ds_window_create(client, &w0);
    110113        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    111114
    112         rc = ds_window_create(client, &w1);
    113         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     115        wnd = ds_display_first_window(disp);
     116        PCUT_ASSERT_EQUALS(w0, wnd);
     117
     118        wnd = ds_display_next_window(wnd);
     119        PCUT_ASSERT_EQUALS(w1, wnd);
     120
     121        wnd = ds_display_next_window(wnd);
     122        PCUT_ASSERT_NULL(wnd);
    114123
    115124        wnd = ds_display_find_window(disp, w0->id);
     
    122131        PCUT_ASSERT_NULL(wnd);
    123132
    124         wnd = ds_display_find_window(disp, w1->id + 1);
     133        wnd = ds_display_find_window(disp, w0->id + 1);
    125134        PCUT_ASSERT_NULL(wnd);
    126135
Note: See TracChangeset for help on using the changeset viewer.