Skip to content

Commit 45b167d

Browse files
committed
[examples][utest] Adjust test run time
1 parent 2062ab0 commit 45b167d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/utest/testcases/kernel/mem_tc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ static void mem_alloc_test(void)
420420

421421
#define MEM_RANG_REALLOC_BLK_MIN 0
422422
#define MEM_RANG_REALLOC_BLK_MAX 5
423-
#define MEM_RANG_REALLOC_TEST_TIME 10
423+
#define MEM_RANG_REALLOC_TEST_TIME 5
424424

425425
struct mem_realloc_context
426426
{
@@ -585,4 +585,4 @@ static void testcase(void)
585585
UTEST_UNIT_RUN(mem_alloc_test);
586586
UTEST_UNIT_RUN(mem_realloc_test);
587587
}
588-
UTEST_TC_EXPORT(testcase, "testcases.kernel.mem_tc", utest_tc_init, utest_tc_cleanup, 10);
588+
UTEST_TC_EXPORT(testcase, "testcases.kernel.mem_tc", utest_tc_init, utest_tc_cleanup, 20);

examples/utest/testcases/kernel/slab_tc.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ static void slab_alloc_test(void)
159159

160160
#define SLAB_RANG_REALLOC_BLK_MIN 0
161161
#define SLAB_RANG_REALLOC_BLK_MAX 5
162-
#define SLAB_RANG_REALLOC_TEST_TIME 10
162+
#define SLAB_RANG_REALLOC_TEST_TIME 5
163163

164164
struct slab_realloc_context
165165
{
@@ -320,4 +320,4 @@ static void testcase(void)
320320
UTEST_UNIT_RUN(slab_alloc_test);
321321
UTEST_UNIT_RUN(slab_realloc_test);
322322
}
323-
UTEST_TC_EXPORT(testcase, "testcases.kernel.slab_tc", utest_tc_init, utest_tc_cleanup, 10);
323+
UTEST_TC_EXPORT(testcase, "testcases.kernel.slab_tc", utest_tc_init, utest_tc_cleanup, 20);

0 commit comments

Comments
 (0)