Skip to content

Commit

Permalink
Improve coverage of test a little
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Nov 1, 2024
1 parent 65ee7b9 commit 0def389
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/multiple_startup_shutdown_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "reactor-uc/reactor-uc.h"
#include "unity.h"

DEFINE_STARTUP_STRUCT(MyStartup, 1)
DEFINE_STARTUP_STRUCT(MyStartup, 2)
DEFINE_STARTUP_CTOR(MyStartup, 1)

DEFINE_STARTUP_STRUCT(MyStartup2, 1)
Expand Down Expand Up @@ -81,6 +81,7 @@ void MyReactor_ctor(MyReactor *self, Environment *env) {
MyShutdown2_ctor(&self->shutdown2, &self->super);

BUILTIN_REGISTER_EFFECT(self->startup, self->reaction0);
BUILTIN_REGISTER_EFFECT(self->startup, self->reaction1);
BUILTIN_REGISTER_EFFECT(self->startup2, self->reaction1);
BUILTIN_REGISTER_EFFECT(self->shutdown, self->reaction2);
BUILTIN_REGISTER_EFFECT(self->shutdown2, self->reaction3);
Expand Down

0 comments on commit 0def389

Please sign in to comment.