Skip to content
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

[Bug] k230 utest libc测试部分测试例失败 #9897

Open
yixinghua121 opened this issue Jan 9, 2025 · 2 comments
Open

[Bug] k230 utest libc测试部分测试例失败 #9897

yixinghua121 opened this issue Jan 9, 2025 · 2 comments
Assignees
Labels
Arch: RISC-V BSP related with risc-v BSP: K230 BSP related with K230

Comments

@yixinghua121
Copy link
Contributor

yixinghua121 commented Jan 9, 2025

RT-Thread Version

c1166e0

Hardware Type/Architectures

k230

Develop Toolchain

GCC

Describe the bug

  1. 编译链接代码后,会生成test目录下生成一个应用程序:utestcases.elf,将其拷贝到sdcard或者编译进文件系统。
  2. 测试执行,进入应用程序所在目录,然后执行命令:utestcases.elf all
    3.测试libc,部分case失败;
    4.代码:maix3/software/userapps/testcases/test
    5.失败case:
    utest.pingpong_test.pingpong_timeout_tc
    utest.libc_test.file.fcntl
    utest.libc_test.file.fscanf
    utest.libc_test.math.powf

Other additional context

No response

@unicornx unicornx added the Arch: RISC-V BSP related with risc-v label Jan 13, 2025
@Rbb666 Rbb666 added the BSP: K230 BSP related with K230 label Jan 13, 2025
@heyuanjie87
Copy link
Contributor

fscanf的问题是报的这个错吗,需要创建一个可写的sdcard目录。测试代码创建了文件:"char *temp_file = "/sdcard/temp_file_fscanf";"

msh />fscanf.elf
msh />fopen tmpfile failed
fscanf.c:65: !!(f=writetemp("      42")) failed (failed to make temp file)
fopen tmpfile failed
fscanf.c:76: !!(f=writetemp("[abc123]....x")) failed (failed to make temp file)
fopen tmpfile failed
fscanf.c:90: !!(f=writetemp("0x1p 12")) failed (failed to make temp file)
fopen tmpfile failed
fscanf.c:114: !!(f=writetemp("0x.1p4    012")) failed (failed to make temp file)
fopen tmpfile failed
fscanf.c:127: !!(f=writetemp("0xx")) failed (failed to make temp file)

@yixinghua121
Copy link
Contributor Author

utest.libc_test.file.fscanf, 问题已经解决;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: RISC-V BSP related with risc-v BSP: K230 BSP related with K230
Projects
None yet
Development

No branches or pull requests

4 participants