YAC 3.21.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#define PUT_ERR_F(fmt, ...) err_count__++, fprintf(stderr, fmt "\n", ##__VA_ARGS__);
12
13#define INC_ERR (err_count__++)
14
15#define TEST_EXIT_CODE ((!err_count__)?EXIT_SUCCESS:EXIT_FAILURE)
16#define EXIT_SKIP_TEST (77)
17
18
unsigned err_count__
Definition tests.c:7