Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
abort.h
Go to the documentation of this file.
1/*
2 * The MIT License (MIT)
3 *
4 * Copyright © 2015-2016 Franklin "Snaipe" Mathieu <http://snai.pe/>
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 */
24/**
25 * @file
26 * @brief Functions to abort and continue tests
27 *****************************************************************************/
28#ifndef CRITERION_ABORT_H_
29#define CRITERION_ABORT_H_
30
31#include "internal/common.h"
32
34
35/**
36 * Aborts the current test, marking it as failed.
37 *
38 * This function does not return.
39 */
41
42/**
43 * Aborts the current test, marking it as skipped.
44 *
45 * This function does not return.
46 */
48
49/**
50 * Continues the current test.
51 *
52 * Used as a counterpart to criterion_abort_test.
53 */
55
56/**
57 * Kills the current test, marking it as failed.
58 *
59 * @param[in] msg printf like format string
60 * @param[in] ... Additional arguments depending on msg
61 */
62CR_API void criterion_test_die(const char *msg, ...);
63
65
66#endif /* !CRITERION_ABORT_H_ */
CR_API CR_NORETURN void criterion_skip_test(const char *format,...)
CR_API void criterion_test_die(const char *msg,...)
CR_BEGIN_C_API CR_API CR_NORETURN void criterion_abort_test(void)
CR_API void criterion_continue_test(void)
#define CR_BEGIN_C_API
Definition common.h:54
#define CR_API
Definition common.h:128
#define CR_NORETURN
Definition common.h:92
#define CR_END_C_API
Definition common.h:55
json_t format(printf, 1, 2)))