diff options
Diffstat (limited to 'src/tests/session/test-session.c')
-rw-r--r-- | src/tests/session/test-session.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/session/test-session.c b/src/tests/session/test-session.c index 637b0a16..fdbb0435 100644 --- a/src/tests/session/test-session.c +++ b/src/tests/session/test-session.c @@ -187,6 +187,7 @@ END_TEST /*********************************************************************/ /* check hooking */ +#if WITH_AFB_HOOK int hookflag; void on_create(void *closure, const struct afb_hookid *hookid, struct afb_session *session) @@ -299,6 +300,8 @@ START_TEST (check_hooking) } END_TEST +#endif + /*********************************************************************/ @@ -327,6 +330,8 @@ int main(int ac, char **av) addtest(check_creation); addtest(check_capacity); addtest(check_cookies); +#if WITH_AFB_HOOK addtest(check_hooking); +#endif return !!srun(); } |