YAC 3.18.0
Yet Another Coupler
Loading...
Searching...
No Matches
tests.h File Reference
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PUT_ERR(string)   err_count__++, fputs((string "\n"), stderr);
 
#define PUT_ERR_F(fmt, ...)   err_count__++, fprintf(stderr, fmt "\n", ##__VA_ARGS__);
 
#define INC_ERR   (err_count__++)
 
#define TEST_EXIT_CODE   ((!err_count__)?EXIT_SUCCESS:EXIT_FAILURE)
 
#define EXIT_SKIP_TEST   (77)
 

Variables

unsigned err_count__
 

Macro Definition Documentation

◆ EXIT_SKIP_TEST

#define EXIT_SKIP_TEST   (77)

Definition at line 16 of file tests.h.

◆ INC_ERR

#define INC_ERR   (err_count__++)

Definition at line 13 of file tests.h.

◆ PUT_ERR

#define PUT_ERR ( string)    err_count__++, fputs((string "\n"), stderr);

Definition at line 10 of file tests.h.

◆ PUT_ERR_F

#define PUT_ERR_F ( fmt,
... )   err_count__++, fprintf(stderr, fmt "\n", ##__VA_ARGS__);

Definition at line 11 of file tests.h.

◆ TEST_EXIT_CODE

#define TEST_EXIT_CODE   ((!err_count__)?EXIT_SUCCESS:EXIT_FAILURE)

Definition at line 15 of file tests.h.

Variable Documentation

◆ err_count__

unsigned err_count__
extern

Definition at line 7 of file tests.c.