blob: 9cbbcae7c375e873bcc565582c5eead960f59447 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
* The Rin Library – library "conformance" tests
*
* Copyright (C) 2015-2017 Gediminas Jakutis
*/
#include "test.h"
int ok(const unsigned int test, const char *format, ...)
{
static int ret;
va_list args;
if (test) {
++ret;
va_start(args, format);
vfprintf(stderr, format, args);
fputc('\n', stderr);
}
return ret;
}
|