mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-24 02:29:23 +00:00
zdtm: Make test_{doc,author} weak variables
Allows to override them in every test, optionally. Signed-off-by: Dmitry Safonov <dima@arista.com>
This commit is contained in:
parent
72ff290708
commit
99346a2824
2 changed files with 5 additions and 2 deletions
|
|
@ -113,8 +113,8 @@ static void helpexit(void)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
const char *test_doc;
|
||||
const char *test_author;
|
||||
const char __attribute__((weak)) *test_doc;
|
||||
const char __attribute__((weak)) *test_author;
|
||||
|
||||
static void prdoc(void)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -155,6 +155,9 @@ struct zdtm_tcp_opts {
|
|||
int flags;
|
||||
};
|
||||
|
||||
extern const char *test_author;
|
||||
extern const char *test_doc;
|
||||
|
||||
extern int tcp_init_server_with_opts(int family, int *port, struct zdtm_tcp_opts *opts);
|
||||
extern pid_t sys_clone_unified(unsigned long flags, void *child_stack, void *parent_tid,
|
||||
void *child_tid, unsigned long newtls);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue