Ignore:
Timestamp:
2023-04-20T18:43:15Z (20 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cdf5361
Parents:
37087c8
Message:

Start filling in unit tests for display-cfg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/display-cfg/test/display-cfg.c

    r37087c8 r97d3d9d  
    2929#include <errno.h>
    3030#include <pcut/pcut.h>
     31#include <ui/ui.h>
    3132#include "../display-cfg.h"
    3233
     
    3536PCUT_TEST_SUITE(display_cfg);
    3637
    37 //XXX TODO
     38/** Test display_cfg_create() and display_cfg_destroy() */
     39PCUT_TEST(create_destroy)
     40{
     41        display_cfg_t *dcfg;
     42        errno_t rc;
     43
     44        rc = display_cfg_create(UI_DISPLAY_NULL, &dcfg);
     45        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     46
     47        display_cfg_destroy(dcfg);
     48}
    3849
    3950PCUT_EXPORT(display_cfg);
Note: See TracChangeset for help on using the changeset viewer.