Changeset f7a90df in mainline for uspace/lib/display/test/display.c


Ignore:
Timestamp:
2020-10-25T19:20:57Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d284ce9
Parents:
5a43bd0
Message:

Prototype UI and window classes

It is difficult to do any useful testing on ui_window without a real
display_t. Without display, there is no window, without window no GC,
without GC no UI resource.

As a compromise, in case of unit test, create UI with display == NULL,
in which case create window with NULL dwindow and a dummy GC
(so we have valid UI resource).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/test/display.c

    r5a43bd0 rf7a90df  
    331331}
    332332
     333/** display_window_destroy() can handle NULL argument */
     334PCUT_TEST(window_destroy_null)
     335{
     336        display_window_destroy(NULL);
     337}
     338
    333339/** display_window_move_req() with server returning error response works. */
    334340PCUT_TEST(window_move_req_failure)
Note: See TracChangeset for help on using the changeset viewer.