YAC 3.14.0
Yet Another Coupler
Loading...
Searching...
No Matches
tests.h
Go to the documentation of this file.
1// Copyright (c) 2024 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#include <stdlib.h>
6#include <stdio.h>
7
8extern unsigned err_count__;
9
10#define PUT_ERR(string) err_count__++, fputs((string "\n"), stderr);
11
12#define INC_ERR (err_count__++)
13
14#define TEST_EXIT_CODE ((!err_count__)?EXIT_SUCCESS:EXIT_FAILURE)
15#define EXIT_SKIP_TEST (77)
16
17
unsigned err_count__
Definition tests.c:7