Changeset cf32dbd in mainline for uspace/srv/hid/display/test/display.c
- Timestamp:
- 2019-11-29T19:38:25Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd777a2
- Parents:
- 38e5f36c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/test/display.c
r38e5f36c rcf32dbd 34 34 #include "../client.h" 35 35 #include "../display.h" 36 #include "../seat.h" 36 37 #include "../window.h" 37 38 … … 130 131 } 131 132 133 /** Basic seat operation. */ 134 PCUT_TEST(display_seat) 135 { 136 ds_display_t *disp; 137 ds_seat_t *seat; 138 ds_seat_t *s0, *s1; 139 errno_t rc; 140 141 rc = ds_display_create(NULL, &disp); 142 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 143 144 rc = ds_seat_create(disp, &seat); 145 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 146 147 s0 = ds_display_first_seat(disp); 148 PCUT_ASSERT_EQUALS(s0, seat); 149 150 s1 = ds_display_next_seat(s0); 151 PCUT_ASSERT_NULL(s1); 152 153 ds_seat_destroy(seat); 154 ds_display_destroy(disp); 155 } 156 132 157 /** Test ds_display_post_kbd_event(). */ 133 158 PCUT_TEST(display_post_kbd_event) 134 159 { 135 160 ds_display_t *disp; 161 ds_seat_t *seat; 136 162 ds_client_t *client; 137 163 ds_window_t *wnd; … … 141 167 142 168 rc = ds_display_create(NULL, &disp); 169 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 170 171 rc = ds_seat_create(disp, &seat); 143 172 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 144 173 … … 162 191 ds_window_destroy(wnd); 163 192 ds_client_destroy(client); 193 ds_seat_destroy(seat); 164 194 ds_display_destroy(disp); 165 195 }
Note:
See TracChangeset
for help on using the changeset viewer.