Changeset 9532981 in mainline for uspace/srv/sysman/test/mock_unit.c
- Timestamp:
- 2019-08-07T09:35:37Z (5 years ago)
- Children:
- db34424
- Parents:
- af92309
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-11-02 23:10:51)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 09:35:37)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/test/mock_unit.c
raf92309 r9532981 29 29 #include <assert.h> 30 30 31 #include "../ dep.h"31 #include "../edge.h" 32 32 33 33 #include "mock_unit.h" … … 76 76 } 77 77 78 void mock_add_ dependency(unit_t *dependant, unit_t *dependency)78 void mock_add_edge(unit_t *input, unit_t *output) 79 79 { 80 int rc = dep_add_dependency(dependant, dependency);80 int rc = edge_connect(input, output); 81 81 assert(rc == EOK); 82 82 83 link_t *link = list_last(& dependant->dependencies);84 unit_ dependency_t *dep=85 list_get_instance(link, unit_ dependency_t, dependencies);86 dep->state = DEP_VALID;83 link_t *link = list_last(&input->edges_out); 84 unit_edge_t *e = 85 list_get_instance(link, unit_edge_t, edges_out); 86 e->commited = true; 87 87 } 88 88
Note:
See TracChangeset
for help on using the changeset viewer.