Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
hooks: Allow to remove hooking (and/or trace)
[src/app-framework-binder.git]
/
src
/
tests
/
session
/
test-session.c
diff --git
a/src/tests/session/test-session.c
b/src/tests/session/test-session.c
index
637b0a1
..
fdbb043
100644
(file)
--- a/
src/tests/session/test-session.c
+++ b/
src/tests/session/test-session.c
@@
-187,6
+187,7
@@
END_TEST
/*********************************************************************/
/* check hooking */
/*********************************************************************/
/* check hooking */
+#if WITH_AFB_HOOK
int hookflag;
void on_create(void *closure, const struct afb_hookid *hookid, struct afb_session *session)
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
}
END_TEST
+#endif
+
/*********************************************************************/
/*********************************************************************/
@@
-327,6
+330,8
@@
int main(int ac, char **av)
addtest(check_creation);
addtest(check_capacity);
addtest(check_cookies);
addtest(check_creation);
addtest(check_capacity);
addtest(check_cookies);
+#if WITH_AFB_HOOK
addtest(check_hooking);
addtest(check_hooking);
+#endif
return !!srun();
}
return !!srun();
}