Changeset 25697163 in mainline for uspace/srv/sysman/test


Ignore:
Timestamp:
2019-10-06T19:47:15Z (6 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
9559cf8
Parents:
102f641
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-09-06 17:58:36)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-10-06 19:47:15)
Message:

Replacing int with errno_t

The merged code from system-daemon still used the type int
for indicating an error instead of using errno_t. This
commit corrects this mistake

Location:
uspace/srv/sysman/test
Files:
4 edited

Legend:

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

    r102f641 r25697163  
    114114
    115115        dyn_array_initialize(&exp_closure, job_t *);
    116         int rc = dyn_array_reserve(&exp_closure, MAX_TYPES * MAX_UNITS);
     116        errno_t rc = dyn_array_reserve(&exp_closure, MAX_TYPES * MAX_UNITS);
    117117        assert(rc == EOK);
    118118
     
    153153        assert(main_job);
    154154
    155         int rc = job_create_closure(main_job, &act_closure, 0);
     155        errno_t rc = job_create_closure(main_job, &act_closure, 0);
    156156        PCUT_ASSERT_INT_EQUALS(EOK, rc);
    157157
     
    185185        assert(main_job);
    186186
    187         int rc = job_create_closure(main_job, &act_closure, 0);
     187        errno_t rc = job_create_closure(main_job, &act_closure, 0);
    188188        PCUT_ASSERT_INT_EQUALS(EOK, rc);
    189189
     
    219219        assert(main_job);
    220220
    221         int rc = job_create_closure(main_job, &act_closure, 0);
     221        errno_t rc = job_create_closure(main_job, &act_closure, 0);
    222222        PCUT_ASSERT_INT_EQUALS(EOK, rc);
    223223
     
    266266        assert(main_job);
    267267
    268         int rc = job_create_closure(main_job, &act_closure, CLOSURE_ISOLATE);
     268        errno_t rc = job_create_closure(main_job, &act_closure, CLOSURE_ISOLATE);
    269269        PCUT_ASSERT_INT_EQUALS(EOK, rc);
    270270
  • uspace/srv/sysman/test/job_queue.c

    r102f641 r25697163  
    8686        job_t *job = NULL;
    8787
    88         int rc = sysman_run_job(u, STATE_STARTED, 0, &job_finished_cb,
     88        errno_t rc = sysman_run_job(u, STATE_STARTED, 0, &job_finished_cb,
    8989            &job);
    9090        PCUT_ASSERT_INT_EQUALS(EOK, rc);
     
    106106        job_t *job = NULL;
    107107
    108         int rc = sysman_run_job(u, STATE_STARTED, 0, &job_finished_cb, &job);
     108        errno_t rc = sysman_run_job(u, STATE_STARTED, 0, &job_finished_cb, &job);
    109109        PCUT_ASSERT_INT_EQUALS(EOK, rc);
    110110
     
    147147        /* Run test */
    148148        job_t *job = NULL;
    149         int rc = sysman_run_job(s1, STATE_STARTED, 0, &job_finished_cb, &job);
     149        errno_t rc = sysman_run_job(s1, STATE_STARTED, 0, &job_finished_cb, &job);
    150150        PCUT_ASSERT_INT_EQUALS(EOK, rc);
    151151
     
    169169        /* Create and start first job */
    170170        job_t *j0 = NULL;
    171         int rc = sysman_run_job(s0, STATE_STARTED, 0, &job_finished_cb, &j0);
     171        errno_t rc = sysman_run_job(s0, STATE_STARTED, 0, &job_finished_cb, &j0);
    172172        PCUT_ASSERT_INT_EQUALS(EOK, rc);
    173173
  • uspace/srv/sysman/test/mock_unit.c

    r102f641 r25697163  
    7878void mock_add_edge(unit_t *input, unit_t *output)
    7979{
    80         int rc = edge_connect(input, output);
     80        errno_t rc = edge_connect(input, output);
    8181        assert(rc == EOK);
    8282
     
    8787}
    8888
    89 int mock_unit_vmt_start_sync(unit_t *unit)
     89errno_t mock_unit_vmt_start_sync(unit_t *unit)
    9090{
    9191        unit->state = STATE_STARTED;
     
    9393}
    9494
    95 int mock_unit_vmt_start_async(unit_t *unit)
     95errno_t mock_unit_vmt_start_async(unit_t *unit)
    9696{
    9797        unit->state = STATE_STARTING;
  • uspace/srv/sysman/test/mock_unit.h

    r102f641 r25697163  
    4848extern void mock_add_edge(unit_t *, unit_t *);
    4949
    50 extern int mock_unit_vmt_start_sync(unit_t *);
    51 extern int mock_unit_vmt_start_async(unit_t *);
     50extern errno_t mock_unit_vmt_start_sync(unit_t *);
     51extern errno_t mock_unit_vmt_start_async(unit_t *);
    5252extern void mock_unit_vmt_exposee_created(unit_t *);
    5353
Note: See TracChangeset for help on using the changeset viewer.