Changeset dc5c303 in mainline for uspace/lib/ui/test/ui.c


Ignore:
Timestamp:
2023-12-28T13:59:23Z (2 years ago)
Author:
GitHub <noreply@…>
Children:
6b66de6b
Parents:
42c2e65 (diff), f87ff8e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
boba-buba <120932204+boba-buba@…> (2023-12-28 13:59:23)
git-committer:
GitHub <noreply@…> (2023-12-28 13:59:23)
Message:

Merge branch 'master' into topic/packet-capture

File:
1 edited

Legend:

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

    r42c2e65 rdc5c303  
    11/*
    2  * Copyright (c) 2022 Jiri Svoboda
     2 * Copyright (c) 2023 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    6969}
    7070
    71 /** ui_suspend() / ui_resume() do nothing if we don't have a console */
     71/** ui_suspend() / ui_resume() do nothing if we don't have a console,
     72 * ui_is_suspended() returns suspend status
     73 */
    7274PCUT_TEST(suspend_resume)
    7375{
     
    7981        PCUT_ASSERT_NOT_NULL(ui);
    8082
     83        PCUT_ASSERT_FALSE(ui_is_suspended(ui));
     84
    8185        rc = ui_suspend(ui);
    8286        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     87
     88        PCUT_ASSERT_TRUE(ui_is_suspended(ui));
     89
    8390        rc = ui_resume(ui);
    8491        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     92
     93        PCUT_ASSERT_FALSE(ui_is_suspended(ui));
    8594
    8695        ui_destroy(ui);
Note: See TracChangeset for help on using the changeset viewer.