Skip to content

fix(kernel)/improve(utest):fix the legacy issue related to the length of the object name version #10537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/utest/kernel/object.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
CONFIG_UTEST_OBJECT_TC=y

# dependencies
CONFIG_RT_USING_CI_ACTION=y
CONFIG_RT_USING_DEVICE=y
CONFIG_RT_USING_SEMAPHORE=y
3 changes: 3 additions & 0 deletions .github/workflows/utest_auto_run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
config_file:
- "default.cfg"

# kernel
# - "kernel/object.cfg"

# cpp11
# - "cpp11/cpp11.cfg"

Expand Down
22 changes: 21 additions & 1 deletion bsp/qemu-vexpress-a9/.config
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
# CONFIG_RT_UTEST_TC_USING_KLIBC is not set
# end of klibc options

CONFIG_RT_NAME_MAX=8
CONFIG_RT_NAME_MAX=16
# CONFIG_RT_USING_ARCH_DATA_TYPE is not set
# CONFIG_RT_USING_NANO is not set
# CONFIG_RT_USING_SMART is not set
Expand Down Expand Up @@ -496,6 +496,7 @@ CONFIG_RT_PAGE_MAX_ORDER=11
# CONFIG_PKG_USING_FREEMODBUS is not set
# CONFIG_PKG_USING_NANOPB is not set
# CONFIG_PKG_USING_WIFI_HOST_DRIVER is not set
# CONFIG_PKG_USING_ESP_HOSTED is not set

#
# Wi-Fi
Expand Down Expand Up @@ -603,6 +604,7 @@ CONFIG_RT_PAGE_MAX_ORDER=11
# CONFIG_PKG_USING_QMODBUS is not set
# CONFIG_PKG_USING_PNET is not set
# CONFIG_PKG_USING_OPENER is not set
# CONFIG_PKG_USING_FREEMQTT is not set
# end of IoT - internet of things

#
Expand Down Expand Up @@ -831,6 +833,7 @@ CONFIG_RT_PAGE_MAX_ORDER=11
# CONFIG_PKG_USING_RMP is not set
# CONFIG_PKG_USING_R_RHEALSTONE is not set
# CONFIG_PKG_USING_HEARTBEAT is not set
# CONFIG_PKG_USING_MICRO_ROS_RTTHREAD_PACKAGE is not set
# end of system packages

#
Expand Down Expand Up @@ -954,6 +957,8 @@ CONFIG_RT_PAGE_MAX_ORDER=11
#
# HC32 DDL Drivers
#
# CONFIG_PKG_USING_HC32F4_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_HC32F4_SERIES_DRIVER is not set
# end of HC32 DDL Drivers

#
Expand All @@ -967,6 +972,21 @@ CONFIG_RT_PAGE_MAX_ORDER=11
# CONFIG_PKG_USING_NXP_IMX6UL_DRIVER is not set
# CONFIG_PKG_USING_NXP_IMXRT_DRIVER is not set
# end of NXP HAL & SDK Drivers

#
# NUVOTON Drivers
#
# CONFIG_PKG_USING_NUVOTON_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_NUVOTON_SERIES_DRIVER is not set
# CONFIG_PKG_USING_NUVOTON_ARM926_LIB is not set
# end of NUVOTON Drivers

#
# GD32 Drivers
#
# CONFIG_PKG_USING_GD32_ARM_CMSIS_DRIVER is not set
# CONFIG_PKG_USING_GD32_ARM_SERIES_DRIVER is not set
# end of GD32 Drivers
# end of HAL & SDK Drivers

#
Expand Down
10 changes: 9 additions & 1 deletion bsp/qemu-vexpress-a9/rtconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@

/* end of rt_strnlen options */
/* end of klibc options */
#define RT_NAME_MAX 8
#define RT_NAME_MAX 16
#define RT_CPUS_NR 1
#define RT_ALIGN_SIZE 8
#define RT_THREAD_PRIORITY_256
Expand Down Expand Up @@ -410,6 +410,14 @@
/* NXP HAL & SDK Drivers */

/* end of NXP HAL & SDK Drivers */

/* NUVOTON Drivers */

/* end of NUVOTON Drivers */

/* GD32 Drivers */

/* end of GD32 Drivers */
/* end of HAL & SDK Drivers */

/* sensors drivers */
Expand Down
10 changes: 6 additions & 4 deletions examples/utest/testcases/kernel/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
menu "Kernel Testcase"

config UTEST_OBJECT_TC
bool "object test"
default y

config UTEST_MEMHEAP_TC
bool "memheap stability test"
default y
Expand All @@ -14,6 +10,12 @@ config UTEST_SMALL_MEM_TC
default y
depends on RT_USING_SMALL_MEM

config UTEST_OBJECT_TC
select RT_USING_DEVICE
select RT_USING_SEMAPHORE
bool "object test"
default n

config UTEST_SLAB_TC
bool "slab test"
default n
Expand Down
Loading