doc
tests
torture.h
Go to the documentation of this file.
1
#ifndef _TORTURE_H
2
#define _TORTURE_H
3
4
#include <stdarg.h>
5
#include <stddef.h>
6
#include <setjmp.h>
7
8
#include <cmocka.h>
9
10
/* Used by main to communicate with parse_opt. */
11
struct
argument_s
{
12
char
*
args
[2];
13
int
verbose
;
14
};
15
16
void
torture_cmdline_parse
(
int
argc,
char
**argv,
struct
argument_s
*arguments);
17
18
int
torture_csync_verbosity
(
void
);
19
20
/*
21
* This function must be defined in every unit test file.
22
*/
23
int
torture_run_tests
(
void
);
24
25
#endif
/* _TORTURE_H */
torture_csync_verbosity
int torture_csync_verbosity(void)
argument_s::args
char * args[2]
Definition:
torture.h:12
torture_cmdline_parse
void torture_cmdline_parse(int argc, char **argv, struct argument_s *arguments)
torture_run_tests
int torture_run_tests(void)
argument_s
Definition:
torture.h:11
argument_s::verbose
int verbose
Definition:
torture.h:13
Generated by
1.8.14