Changeset ebb1489 in mainline for uspace/lib/tbarcfg/test/tbarcfg.c


Ignore:
Timestamp:
2024-10-13T08:23:40Z (8 weeks ago)
Author:
GitHub <noreply@…>
Children:
0472cf17
Parents:
2a0c827c (diff), b3b79981 (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@…> (2024-10-13 08:23:40)
git-committer:
GitHub <noreply@…> (2024-10-13 08:23:40)
Message:

Merge branch 'HelenOS:master' into topic/packet-capture

File:
1 edited

Legend:

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

    r2a0c827c rebb1489  
    5757        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    5858
     59        tbarcfg_sync(tbcfg);
    5960        tbarcfg_close(tbcfg);
    6061
     
    170171        PCUT_ASSERT_TRUE(smenu_entry_get_separator(e2));
    171172
     173        tbarcfg_sync(tbcfg);
    172174        tbarcfg_close(tbcfg);
    173175
     
    261263        smenu_entry_set_terminal(e, true);
    262264
    263         rc = smenu_entry_save(e);
     265        rc = tbarcfg_sync(tbcfg);
    264266        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    265267
     
    272274        PCUT_ASSERT_TRUE(terminal);
    273275
     276        tbarcfg_sync(tbcfg);
    274277        tbarcfg_close(tbcfg);
    275278
     
    359362        PCUT_ASSERT_EQUALS(e, f);
    360363
    361         rc = smenu_entry_destroy(e);
    362         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     364        smenu_entry_destroy(e);
    363365
    364366        f = tbarcfg_smenu_first(tbcfg);
     
    400402        /* Moving the first entry up should have no effect */
    401403
    402         rc = smenu_entry_move_up(e1);
    403         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     404        smenu_entry_move_up(e1);
    404405
    405406        f = tbarcfg_smenu_first(tbcfg);
     
    408409        /* Moving the second entry up should move it to first position */
    409410
    410         rc = smenu_entry_move_up(e2);
    411         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     411        smenu_entry_move_up(e2);
    412412
    413413        f = tbarcfg_smenu_first(tbcfg);
     
    416416        /* Moving the last entry up should move it to second position */
    417417
    418         rc = smenu_entry_move_up(e3);
    419         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     418        smenu_entry_move_up(e3);
    420419
    421420        f = tbarcfg_smenu_first(tbcfg);
     
    428427        PCUT_ASSERT_EQUALS(e1, f);
    429428
     429        tbarcfg_sync(tbcfg);
    430430        tbarcfg_close(tbcfg);
    431431
     
    496496        /* Moving the last entry down should have no effect */
    497497
    498         rc = smenu_entry_move_down(e3);
    499         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     498        smenu_entry_move_down(e3);
    500499
    501500        f = tbarcfg_smenu_last(tbcfg);
     
    504503        /* Moving the second entry down should move it to last position */
    505504
    506         rc = smenu_entry_move_down(e2);
    507         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     505        smenu_entry_move_down(e2);
    508506
    509507        f = tbarcfg_smenu_last(tbcfg);
     
    512510        /* Moving the first entry down should move it to second position */
    513511
    514         rc = smenu_entry_move_down(e1);
    515         PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     512        smenu_entry_move_down(e1);
    516513
    517514        f = tbarcfg_smenu_last(tbcfg);
     
    524521        PCUT_ASSERT_EQUALS(e3, f);
    525522
     523        tbarcfg_sync(tbcfg);
    526524        tbarcfg_close(tbcfg);
    527525
Note: See TracChangeset for help on using the changeset viewer.