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

v2.9.2 单测运行失败问题 #5184

Closed
TOMO-CAT opened this issue Jun 3, 2024 · 8 comments
Closed

v2.9.2 单测运行失败问题 #5184

TOMO-CAT opened this issue Jun 3, 2024 · 8 comments
Labels
Milestone

Comments

@TOMO-CAT
Copy link

TOMO-CAT commented Jun 3, 2024

Xmake 版本

v2.9.2

操作系统版本和架构

Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

描述问题

xmake test 或者 xmake run 运行单测都失败:
b98e02734edc0ddf99114996c6a6f3ce

但是手动执行单测可以成功:
38165cfbcf6171c7d9cd3b69fb8d178f

调试时发现运行时的环境变量有 1200+,怀疑是不是这里导致的单测失败?
255dcda04634617884a38905a445e53d

期待的结果

能正常运行单测

工程配置

附加信息和错误日志

@TOMO-CAT TOMO-CAT added the bug label Jun 3, 2024
@waruqi
Copy link
Member

waruqi commented Jun 3, 2024

给个可复现的 demo

@TOMO-CAT
Copy link
Author

TOMO-CAT commented Jun 3, 2024

给个可复现的 demo

https://github.com/TOMO-CAT/xmake-template/tree/main/endless_run_envs

这有一个 demo,在 v2.9.2 版本仅仅 10个 object 文件就已经有大量重复的环境变量了,我们的项目更多中间 target,可能正好越界。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: v2.9.2 single test run failure problem

Xmake version

v2.9.2

Operating system version and architecture

Linux 720ce3a659a2 5.15.90.1-microsoft-standard-WSL2 #1 SMP Fri Jan 27 02:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Describe the problem

xmake test or xmake run fail to run single test:
b98e02734edc0ddf99114996c6a6f3ce

But manually executing a single test can be successful:
38165cfbcf6171c7d9cd3b69fb8d178f

During debugging, I found that there are 1200+ environment variables at runtime. I wonder if this is the cause of the single test failure?
255dcda04634617884a38905a445e53d

Expected results

Can run single test normally

Project configuration

none

Additional information and error logs

No

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Give a reproducible demo

waruqi added a commit that referenced this issue Jun 4, 2024
@waruqi
Copy link
Member

waruqi commented Jun 4, 2024

再试试,xmake update -s dev

@waruqi waruqi added this to the v2.9.3 milestone Jun 4, 2024
@TOMO-CAT
Copy link
Author

TOMO-CAT commented Jun 4, 2024

再试试,xmake update -s dev
可以了。

@TOMO-CAT TOMO-CAT closed this as completed Jun 4, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Try again, xmake update -s dev

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Try again, xmake update -s dev
That's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants