Changeset b71c0fc in mainline for uspace/lib/ui/test/label.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/label.c
rfa01c05 rb71c0fc 32 32 #include <pcut/pcut.h> 33 33 #include <stdbool.h> 34 #include <ui/control.h> 34 35 #include <ui/label.h> 35 36 #include <ui/resource.h> … … 95 96 { 96 97 ui_label_destroy(NULL); 98 } 99 100 /** ui_label_ctl() returns control that has a working virtual destructor */ 101 PCUT_TEST(ctl) 102 { 103 ui_label_t *label; 104 ui_control_t *control; 105 errno_t rc; 106 107 rc = ui_label_create(NULL, "Hello", &label); 108 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 109 110 control = ui_label_ctl(label); 111 PCUT_ASSERT_NOT_NULL(control); 112 113 ui_control_destroy(control); 97 114 } 98 115
Note:
See TracChangeset
for help on using the changeset viewer.