Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
4932ce96
Commit
4932ce96
authored
Jun 09, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to regain gcov for tests which panic.
parent
364932ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
cache_panic.c
bin/varnishd/cache/cache_panic.c
+7
-0
mgt_cli.c
bin/varnishd/mgt/mgt_cli.c
+7
-0
No files found.
bin/varnishd/cache/cache_panic.c
View file @
4932ce96
...
...
@@ -63,6 +63,10 @@
*
*/
#ifdef GCOVING
int
__llvm_profile_write_file
(
void
);
#endif
static
struct
vsb
pan_vsb_storage
,
*
pan_vsb
;
static
pthread_mutex_t
panicstr_mtx
;
...
...
@@ -811,6 +815,9 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
VSB_cat
(
pan_vsb
,
"
\n
"
);
VSB_putc
(
pan_vsb
,
'\0'
);
/* NUL termination */
#ifdef GCOVING
__llvm_profile_write_file
();
#endif
abort
();
}
...
...
bin/varnishd/mgt/mgt_cli.c
View file @
4932ce96
...
...
@@ -63,6 +63,10 @@ static const struct cli_cmd_desc *cmds[] = {
#include "tbl/cli_cmds.h"
};
#ifdef GCOVING
int
__llvm_profile_write_file
(
void
);
#endif
static
const
int
ncmds
=
sizeof
cmds
/
sizeof
cmds
[
0
];
static
int
cli_i
=
-
1
,
cli_o
=
-
1
;
...
...
@@ -108,6 +112,9 @@ mcf_panic(struct cli *cli, const char * const *av, void *priv)
(
void
)
cli
;
(
void
)
av
;
(
void
)
priv
;
#ifdef GCOVING
__llvm_profile_write_file
();
#endif
AZ
(
strcmp
(
""
,
"You asked for it"
));
/* NOTREACHED */
abort
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment