[0059] 修复 liii_subprocess 的 Windows 兼容性并添加 Windows 单元测试#857
Merged
Conversation
- Windows 下字符串命令使用 tb_process_init_cmd 而非 /bin/sh -c - Windows 下 discard 模式使用 NUL 替代 /dev/null - 为所有 subprocess 函数添加 (when (os-windows?) ...) 测试分支 - 命令行统一采用 python3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修改内容
C++ 层修复(src/liii_subprocess.cpp)
tb_process_init_cmd直接执行,替代硬编码的/bin/sh -cdiscard模式使用NUL替代/dev/null新增 Windows 单元测试
为全部 14 个 subprocess 测试文件添加
(when (os-windows?) ...)分支,命令行统一采用python3:run、run-values、run-either的基本调用与选项测试run-set!、run-get、run-allow!、run-ban!注册表/黑白名单测试run-and、run-or、run-sequence组合命令测试run-if、run-when条件执行测试run-pipe管道测试(标注 Windows 下 capture 限制)验证
全部 14 个测试文件在 Windows 本地通过(0 failed)。