test: fix more legacy #include paths
Add a bunch of missing "zephyr/" prefixes to #include statements in various test and test framework files. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
parent
63c2347207
commit
def230187b
758 changed files with 867 additions and 867 deletions
|
@ -6,7 +6,7 @@
|
|||
|
||||
#define CONFIG_CBPRINTF_LIBC_SUBSTS 1
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <float.h>
|
||||
#include <limits.h>
|
||||
#include <math.h>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/crc.h>
|
||||
#include "../../../lib/os/crc8_sw.c"
|
||||
#include "../../../lib/os/crc16_sw.c"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
|
||||
/* Built-time math test. Zephyr code depends on a standard C ABI with
|
||||
* 2's complement signed math. As this isn't technically guaranteed
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/dlist.h>
|
||||
|
||||
static sys_dlist_t test_list;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
|
||||
extern void test_slist(void);
|
||||
extern void test_sflist(void);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/sflist.h>
|
||||
|
||||
static sys_sflist_t test_list;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/slist.h>
|
||||
|
||||
static sys_slist_t test_list;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/math_extras.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <zephyr/net/net_timeout.h>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/rb.h>
|
||||
|
||||
#include "../../../lib/os/rb.c"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include "timeutil_test.h"
|
||||
#include "../../../lib/os/timeutil.c"
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/* Tests that gmtime matches gmtime_r */
|
||||
|
||||
#include <string.h>
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include "timeutil_test.h"
|
||||
|
||||
void test_gmtime(void)
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
/* Tests where time_t is a 32-bit value */
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include "timeutil_test.h"
|
||||
|
||||
static const struct timeutil_test_data tests[] = {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/* Tests where time_t requires a 64-bit value */
|
||||
|
||||
#include <errno.h>
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include "timeutil_test.h"
|
||||
|
||||
static const struct timeutil_test_data tests[] = {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
/* Tests for the time_sync data structures */
|
||||
|
||||
#include <string.h>
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include "timeutil_test.h"
|
||||
|
||||
static const struct timeutil_sync_config cfg1 = {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/util.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* Copyright (c) 2021 Intel Corporation
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#include <ztest.h>
|
||||
#include <zephyr/ztest.h>
|
||||
#include <zephyr/sys/winstream.h>
|
||||
|
||||
/* This, uh, seems to be the standard way to unit test library code.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue