/* 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; }