Changeset 88ad75f in mainline for uspace/srv/sysman/test/job_closure.c


Ignore:
Timestamp:
2020-01-09T01:04:57Z (4 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
76c8209
Parents:
0939097
git-author:
Matthieu Riolo <matthieu.riolo@…> (2020-01-05 19:24:23)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2020-01-09 01:04:57)
Message:

repo_add_unit() returned an errno_t but it was never handled. This
commit adds a check if EOK is returned or else the repo will be left
unchanged

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/sysman/test/job_closure.c

    r0939097 r88ad75f  
    245245        repo_begin_update();
    246246        for (int i = 0; i < 7; ++i) {
    247                 repo_add_unit(mock_units[UNIT_SERVICE][i]);
     247                errno_t rc = repo_add_unit(mock_units[UNIT_SERVICE][i]);
     248                PCUT_ASSERT_INT_EQUALS(EOK, rc);
    248249        }
    249250        repo_commit();
Note: See TracChangeset for help on using the changeset viewer.