Changeset 2651dc5 in mainline for uspace/lib/ui/test/ui.c


Ignore:
Timestamp:
2021-10-20T22:22:04Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
966a27d3
Parents:
08d5f8b
Message:

Unmap and clear console before executing a binary

Fixes running edit, nav, improves fdisk, etc.

File:
1 edited

Legend:

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

    r08d5f8b r2651dc5  
    6767{
    6868        ui_destroy(NULL);
     69}
     70
     71/** ui_suspend() / ui_resume() do nothing if we don't have a console */
     72PCUT_TEST(suspend_resume)
     73{
     74        ui_t *ui = NULL;
     75        errno_t rc;
     76
     77        rc = ui_create_disp(NULL, &ui);
     78        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     79        PCUT_ASSERT_NOT_NULL(ui);
     80
     81        rc = ui_suspend(ui);
     82        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     83        rc = ui_resume(ui);
     84        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     85
     86        ui_destroy(ui);
    6987}
    7088
Note: See TracChangeset for help on using the changeset viewer.