ReactOS  0.4.14-dev-315-gbb6fece
lwip_check.h
Go to the documentation of this file.
1 #ifndef __LWIP_CHECK_H__
2 #define __LWIP_CHECK_H__
3 
4 /* Common header file for lwIP unit tests using the check framework */
5 
6 #include <config.h>
7 #include <check.h>
8 #include <stdlib.h>
9 
10 #define FAIL_RET() do { fail(); return; } while(0)
11 #define EXPECT(x) fail_unless(x)
12 #define EXPECT_RET(x) do { fail_unless(x); if(!(x)) { return; }} while(0)
13 #define EXPECT_RETX(x, y) do { fail_unless(x); if(!(x)) { return y; }} while(0)
14 #define EXPECT_RETNULL(x) EXPECT_RETX(x, NULL)
15 
17 typedef Suite* (suite_getter_fn)(void);
18 
20 static Suite* create_suite(const char* name, TFun *tests, size_t num_tests, SFun setup, SFun teardown)
21 {
22  size_t i;
23  Suite *s = suite_create(name);
24 
25  for(i = 0; i < num_tests; i++) {
26  /* Core test case */
27  TCase *tc_core = tcase_create("Core");
28  if ((setup != NULL) || (teardown != NULL)) {
29  tcase_add_checked_fixture(tc_core, setup, teardown);
30  }
31  tcase_add_test(tc_core, tests[i]);
32  suite_add_tcase(s, tc_core);
33  }
34  return s;
35 }
36 
37 #endif /* __LWIP_CHECK_H__ */
struct param_test tests[]
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
smooth NULL
Definition: ftsmooth.c:416
static Suite * create_suite(const char *name, TFun *tests, size_t num_tests, SFun setup, SFun teardown)
Definition: lwip_check.h:20
GLdouble s
Definition: gl.h:2039
void setup(char *serport, int baud)
Definition: gdblib.c:169
Suite *() suite_getter_fn(void)
Definition: lwip_check.h:17
Definition: name.c:36
static void teardown(void)
Definition: enum_files.c:130