Skip to content

Commit 2d7e4d9

Browse files
committed
[testcase] add rtdbg.h
1 parent 3187afe commit 2d7e4d9

File tree

10 files changed

+17
-0
lines changed

10 files changed

+17
-0
lines changed

examples/utest/testcases/drivers/serial_v2/uart_blocking_tx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include <rtdevice.h>
33
#include "utest.h"
44

5+
#include <rtdbg.h>
6+
57
#define SERIAL_UART_NAME "uart2"
68
#define UART_SEND_TIMES 400
79
#define UART_TEST_NUMBER 6

examples/utest/testcases/drivers/serial_v2/uart_nonblocking_tx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
#include <rtdevice.h>
33
#include "utest.h"
44

5+
#include <rtdbg.h>
6+
57
#define SERIAL_UART_NAME "uart2"
68
#define UART_SEND_TIMES 400
79
#define UART_TEST_NUMBER 6

examples/utest/testcases/kernel/hooklist_tc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include "utest.h"
1414
#include "utest_assert.h"
1515

16+
#include <rtdbg.h>
17+
1618
static int hooker1_ent_count;
1719
static int hooker2_ent_count;
1820
static struct rt_thread thr_tobe_inited;

examples/utest/testcases/kernel/irq_tc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include "utest.h"
1313
#include "rthw.h"
1414

15+
#include <rtdbg.h>
16+
1517
#define UTEST_NAME "irq_tc"
1618
static volatile uint32_t irq_count = 0;
1719
static volatile uint32_t max_get_nest_count = 0;

examples/utest/testcases/mm/lwp_mmap_fd.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <mm_private.h>
1414

1515
#include <rtthread.h>
16+
#include <rtdbg.h>
1617

1718
#define PAGE_SZ (1 << MM_PAGE_SHIFT)
1819
#define PAGE_COUNT ('z' - 'a' + 1)

examples/utest/testcases/mm/lwp_mmap_fd_map_fixed_merge.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <mm_private.h>
1414

1515
#include <rtthread.h>
16+
#include <rtdbg.h>
1617

1718
#define PAGE_SZ (1 << MM_PAGE_SHIFT)
1819
#define PAGE_COUNT ('z' - 'a' + 1)

examples/utest/testcases/mm/lwp_mmap_fd_map_fixed_split.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#include <mm_private.h>
1414

1515
#include <rtthread.h>
16+
#include <rtdbg.h>
1617

1718
#define PAGE_SZ (1 << MM_PAGE_SHIFT)
1819
#define PAGE_COUNT ('z' - 'a' + 1)

examples/utest/testcases/smp_call/smp_001_tc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#include <utest_assert.h>
1515
#include <smp_call.h>
1616

17+
#include <rtdbg.h>
18+
1719
#define TEST_COUNT 10000
1820

1921
static int pass_count = 0;

examples/utest/testcases/smp_call/smp_002_tc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <utest_assert.h>
1414
#include <smp_call.h>
1515

16+
#include <rtdbg.h>
17+
1618
#define PERCPU_TEST_COUNT 10000
1719
#define NEWLINE_ON 80
1820

examples/utest/testcases/smp_call/smp_003_tc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include <utest_assert.h>
1414
#include <smp_call.h>
1515

16+
#include <rtdbg.h>
17+
1618
#define PERCPU_TEST_COUNT 10000
1719
#define NEWLINE_ON 80
1820

0 commit comments

Comments
 (0)