STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Data Structures | Macros | Typedefs | Functions
lwip_check.h File Reference
#include <config.h>
#include <check.h>
#include <stdlib.h>

Go to the source code of this file.

Data Structures

struct  testfunc
 

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)
 
#define TESTFUNC(x)   {(x), "" # x "" }
 
#define tcase_add_named_test(tc, tf)   _tcase_add_test((tc),(tf).func,(tf).name,0, 0, 0, 1)
 

Typedefs

typedef Suite *( suite_getter_fn) (void)
 

Functions

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

Macro Definition Documentation

#define EXPECT (   x)    fail_unless(x)

Definition at line 11 of file lwip_check.h.

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

Definition at line 12 of file lwip_check.h.

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

Definition at line 14 of file lwip_check.h.

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

Definition at line 13 of file lwip_check.h.

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

Definition at line 10 of file lwip_check.h.

#define tcase_add_named_test (   tc,
  tf 
)    _tcase_add_test((tc),(tf).func,(tf).name,0, 0, 0, 1)

Definition at line 24 of file lwip_check.h.

#define TESTFUNC (   x)    {(x), "" # x "" }

Definition at line 21 of file lwip_check.h.

Typedef Documentation

typedef Suite*( suite_getter_fn) (void)

typedef for a function returning a test suite

Definition at line 28 of file lwip_check.h.

Function Documentation

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

Create a test suite

Definition at line 13 of file lwip_unittests.c.