From eb8dd9dca1228af0cd132f515509051ecfabf6f6 Mon Sep 17 00:00:00 2001 From: cvs2svn Date: Mon, 14 Apr 2025 17:32:06 +0000 Subject: This commit was manufactured by cvs2git to create tag 'tb_20250414'. --- src/regress/lib/libssl/unit/tests.h | 44 ------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 src/regress/lib/libssl/unit/tests.h (limited to 'src/regress/lib/libssl/unit/tests.h') diff --git a/src/regress/lib/libssl/unit/tests.h b/src/regress/lib/libssl/unit/tests.h deleted file mode 100644 index 287816946a..0000000000 --- a/src/regress/lib/libssl/unit/tests.h +++ /dev/null @@ -1,44 +0,0 @@ -/* $OpenBSD: tests.h,v 1.1 2015/06/27 23:35:52 doug Exp $ */ -/* - * Copyright (c) 2015 Doug Hogan - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ - -#ifndef LIBRESSL_REGRESS_TESTS_H__ -#define LIBRESSL_REGRESS_TESTS_H__ 1 - -/* Ugly macros that are useful for regression tests. */ - -#define SKIP(a) do { \ - printf("Skipping test in %s [%s:%d]\n", __func__, __FILE__, \ - __LINE__); \ -} while (0) - -#define CHECK(a) do { \ - if (!(a)) { \ - printf("Error in %s [%s:%d]\n", __func__, __FILE__, \ - __LINE__); \ - return 0; \ - } \ -} while (0) - -#define CHECK_GOTO(a) do { \ - if (!(a)) { \ - printf("Error in %s [%s:%d]\n", __func__, __FILE__, \ - __LINE__); \ - goto err; \ - } \ -} while (0) - -#endif /* LIBRESSL_REGRESS_TESTS_H__ */ -- cgit v1.2.3-55-g6feb