Ignore:
File:
1 edited

Legend:

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

    rbff8619 ree3b28a9  
    5757        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    5858
    59         tbarcfg_sync(tbcfg);
    6059        tbarcfg_close(tbcfg);
    6160
     
    171170        PCUT_ASSERT_TRUE(smenu_entry_get_separator(e2));
    172171
    173         tbarcfg_sync(tbcfg);
    174172        tbarcfg_close(tbcfg);
    175173
     
    263261        smenu_entry_set_terminal(e, true);
    264262
    265         rc = tbarcfg_sync(tbcfg);
     263        rc = smenu_entry_save(e);
    266264        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    267265
     
    274272        PCUT_ASSERT_TRUE(terminal);
    275273
    276         tbarcfg_sync(tbcfg);
    277274        tbarcfg_close(tbcfg);
    278275
     
    362359        PCUT_ASSERT_EQUALS(e, f);
    363360
    364         smenu_entry_destroy(e);
     361        rc = smenu_entry_destroy(e);
     362        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    365363
    366364        f = tbarcfg_smenu_first(tbcfg);
     
    402400        /* Moving the first entry up should have no effect */
    403401
    404         smenu_entry_move_up(e1);
     402        rc = smenu_entry_move_up(e1);
     403        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    405404
    406405        f = tbarcfg_smenu_first(tbcfg);
     
    409408        /* Moving the second entry up should move it to first position */
    410409
    411         smenu_entry_move_up(e2);
     410        rc = smenu_entry_move_up(e2);
     411        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    412412
    413413        f = tbarcfg_smenu_first(tbcfg);
     
    416416        /* Moving the last entry up should move it to second position */
    417417
    418         smenu_entry_move_up(e3);
     418        rc = smenu_entry_move_up(e3);
     419        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    419420
    420421        f = tbarcfg_smenu_first(tbcfg);
     
    427428        PCUT_ASSERT_EQUALS(e1, f);
    428429
    429         tbarcfg_sync(tbcfg);
    430430        tbarcfg_close(tbcfg);
    431431
     
    496496        /* Moving the last entry down should have no effect */
    497497
    498         smenu_entry_move_down(e3);
     498        rc = smenu_entry_move_down(e3);
     499        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    499500
    500501        f = tbarcfg_smenu_last(tbcfg);
     
    503504        /* Moving the second entry down should move it to last position */
    504505
    505         smenu_entry_move_down(e2);
     506        rc = smenu_entry_move_down(e2);
     507        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    506508
    507509        f = tbarcfg_smenu_last(tbcfg);
     
    510512        /* Moving the first entry down should move it to second position */
    511513
    512         smenu_entry_move_down(e1);
     514        rc = smenu_entry_move_down(e1);
     515        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    513516
    514517        f = tbarcfg_smenu_last(tbcfg);
     
    521524        PCUT_ASSERT_EQUALS(e3, f);
    522525
    523         tbarcfg_sync(tbcfg);
    524526        tbarcfg_close(tbcfg);
    525527
Note: See TracChangeset for help on using the changeset viewer.