Changeset b71c0fc in mainline for uspace/lib/ui/test/pbutton.c
- Timestamp:
- 2020-11-07T16:07:22Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d55ab823
- Parents:
- fa01c05
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/pbutton.c
rfa01c05 rb71c0fc 32 32 #include <pcut/pcut.h> 33 33 #include <stdbool.h> 34 #include <ui/control.h> 34 35 #include <ui/pbutton.h> 35 36 #include <ui/resource.h> … … 104 105 { 105 106 ui_pbutton_destroy(NULL); 107 } 108 109 /** ui_pbutton_ctl() returns control that has a working virtual destructor */ 110 PCUT_TEST(ctl) 111 { 112 ui_pbutton_t *pbutton; 113 ui_control_t *control; 114 errno_t rc; 115 116 rc = ui_pbutton_create(NULL, "Hello", &pbutton); 117 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 118 119 control = ui_pbutton_ctl(pbutton); 120 PCUT_ASSERT_NOT_NULL(control); 121 122 ui_control_destroy(control); 106 123 } 107 124
Note:
See TracChangeset
for help on using the changeset viewer.