From dbb41ce2b7f309d394054a6bd1e33afd578798a5 Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Fri, 23 Oct 2020 15:18:01 +0200 Subject: Move the source code of all xloop components to the common 'src' directory --- kernel/tests/include/tst_assert.h | 65 --------------------------------------- 1 file changed, 65 deletions(-) delete mode 100644 kernel/tests/include/tst_assert.h (limited to 'kernel/tests/include/tst_assert.h') diff --git a/kernel/tests/include/tst_assert.h b/kernel/tests/include/tst_assert.h deleted file mode 100644 index dcb62df..0000000 --- a/kernel/tests/include/tst_assert.h +++ /dev/null @@ -1,65 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * Copyright (c) 2020 FUJITSU LIMITED. All rights reserved. - * Author: Yang Xu - * Copyright (c) 2020 Cyril Hrubis - */ -#ifndef TST_ASSERT_H__ -#define TST_ASSERT_H__ - -#define TST_ASSERT_INT(path, val) \ - tst_assert_int(__FILE__, __LINE__, path, val) - -/* - * Asserts that integer value stored in file pointed by path equals to the - * value passed to this function. This is mostly useful for asserting correct - * values in sysfs, procfs, etc. - */ -void tst_assert_int(const char *file, const int lineno, - const char *path, int val); - -#define TST_ASSERT_FILE_INT(path, prefix, val) \ - tst_assert_file_int(__FILE__, __LINE__, path, prefix, val) - -/* - * Same as tst_assert_int() but for unsigned long. - */ -void tst_assert_ulong(const char *file, const int lineno, - const char *path, unsigned long val); - -#define TST_ASSERT_ULONG(path, val) \ - tst_assert_ulong(__FILE__, __LINE__, path, val) - -/* - * Asserts that integer value stored in the prefix field of file pointed by path - * equals to the value passed to this function. This is mostly useful for - * asserting correct field values in sysfs, procfs, etc. - */ - -void tst_assert_file_int(const char *file, const int lineno, - const char *path, const char *prefix, int val); - - -#define TST_ASSERT_STR(path, val) \ - tst_assert_str(__FILE__, __LINE__, path, val) - -/* - * Asserts that a string value stored in file pointed by path equals to the - * value passed to this function. This is mostly useful for asserting correct - * values in sysfs, procfs, etc. - */ -void tst_assert_str(const char *file, const int lineno, - const char *path, const char *val); - -#define TST_ASSERT_FILE_STR(path, prefix, val) \ - tst_assert_file_str(__FILE__, __LINE__, path, prefix, val) - -/* - * Asserts that a string value stored in the prefix field of file pointed by path - * equals to the value passed to this function. This is mostly useful for - * asserting correct field values in sysfs, procfs, etc. - */ -void tst_assert_file_str(const char *file, const int lineno, - const char *path, const char *prefix, const char *val); - -#endif /* TST_ASSERT_H__ */ -- cgit v1.2.3-55-g7522