ReactOS  0.4.14-dev-1112-g2b067d6
lwip_check.h File Reference
#include <config.h>
#include <check.h>
#include <stdlib.h>
Include dependency graph for lwip_check.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FAIL_RET()   do { fail(); return; } while(0)
 
#define EXPECT(x)   fail_unless(x)
 
#define EXPECT_RET(x)   do { fail_unless(x); if(!(x)) { return; }} while(0)
 
#define EXPECT_RETX(x, y)   do { fail_unless(x); if(!(x)) { return y; }} while(0)
 
#define EXPECT_RETNULL(x)   EXPECT_RETX(x, NULL)
 

Typedefs

typedef Suite *() suite_getter_fn(void)
 

Functions

static Suite * create_suite (const char *name, TFun *tests, size_t num_tests, SFun setup, SFun teardown)
 

Macro Definition Documentation

◆ EXPECT

#define EXPECT (   x)    fail_unless(x)

Definition at line 11 of file lwip_check.h.

◆ EXPECT_RET

#define EXPECT_RET (   x)    do { fail_unless(x); if(!(x)) { return; }} while(0)

Definition at line 12 of file lwip_check.h.

◆ EXPECT_RETNULL

#define EXPECT_RETNULL (   x)    EXPECT_RETX(x, NULL)

Definition at line 14 of file lwip_check.h.

◆ EXPECT_RETX

#define EXPECT_RETX (   x,
  y 
)    do { fail_unless(x); if(!(x)) { return y; }} while(0)

Definition at line 13 of file lwip_check.h.

◆ FAIL_RET

#define FAIL_RET ( )    do { fail(); return; } while(0)

Definition at line 10 of file lwip_check.h.

Typedef Documentation

◆ suite_getter_fn

typedef Suite*() suite_getter_fn(void)

typedef for a function returning a test suite

Definition at line 17 of file lwip_check.h.

Function Documentation

◆ create_suite()

static Suite* create_suite ( const char name,
TFun *  tests,
size_t  num_tests,
SFun  setup,
SFun  teardown 
)
static

Create a test suite

Definition at line 20 of file lwip_check.h.

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 }
static struct test_info 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
GLdouble s
Definition: gl.h:2039
void setup(char *serport, int baud)
Definition: gdblib.c:169
Definition: name.c:38
static void teardown(void)
Definition: enum_files.c:130

Referenced by tcp_oos_suite(), tcp_suite(), and udp_suite().