Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
gcov / test framework: sigterm not sigkill
[vpp.git]
/
src
/
vlib
/
unix
/
main.c
diff --git
a/src/vlib/unix/main.c
b/src/vlib/unix/main.c
index
ed909b6
..
82de8ec
100755
(executable)
--- a/
src/vlib/unix/main.c
+++ b/
src/vlib/unix/main.c
@@
-139,6
+139,17
@@
unix_signal_handler (int signum, siginfo_t * si, ucontext_t * uc)
break;
}
+#ifdef CLIB_GCOV
+ /*
+ * Test framework sends SIGTERM, so we need to flush the
+ * code coverage stats here.
+ */
+ {
+ void __gcov_flush (void);
+ __gcov_flush ();
+ }
+#endif
+
/* Null terminate. */
vec_add1 (syslog_msg, 0);