mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
mapping: fix unit test
This commit is contained in:
parent
6065d1512d
commit
acee6a5bed
1 changed files with 3 additions and 3 deletions
|
@ -47,16 +47,16 @@ Test(mapping, parse_nodes)
|
|||
struct node *n = alloc(sizeof(struct node));
|
||||
|
||||
n->name = node_names[i];
|
||||
n->signals.state = STATE_DESTROYED;
|
||||
n->in.signals.state = STATE_DESTROYED;
|
||||
|
||||
list_init(&n->signals);
|
||||
list_init(&n->in.signals);
|
||||
|
||||
for (int j = 0; j < ARRAY_LEN(signal_names[i]); j++) {
|
||||
struct signal *s = alloc(sizeof(struct signal *));
|
||||
|
||||
s->name = signal_names[i][j];
|
||||
|
||||
list_push(&n->signals, s);
|
||||
list_push(&n->in.signals, s);
|
||||
}
|
||||
|
||||
list_push(&nodes, n);
|
||||
|
|
Loading…
Add table
Reference in a new issue