Skip to content

test(childproc): pin native-launcher shebang resolution without shell root (Refs #1848) - #1851

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/1848-env-script-shebang-createprocess
Nov 22, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/1848-env-script-shebang-createprocess

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Adds a regression test in tests/unit/childproc/childproc_unit_test.cpp (env_shebang_script_with_posix_interpreter_resolves_via_path_without_shell_root) verifying that native-launcher env invocations on #!/usr/bin/env ... scripts resolve via PATH even with NIU_ROOT/WINUXSH_ROOT/RUBASH_ROOT/__RUBASH_SHELL_ROOT unset.

Root-cause finding for #1848:

Verification:

  • winuxcmd-tests.exe --gtest_filter="childproc.*:env.*": 83 passed, 0 failed
  • cargo test: all passed

@caomengxuan666
caomengxuan666 force-pushed the fix/1848-env-script-shebang-createprocess branch from 845f07b to 3c690b1 Compare November 22, 2026 16:00
@caomengxuan666
caomengxuan666 merged commit 58d6c67 into main Nov 22, 2026
28 of 32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

env 被原生启动器以脚本文件为操作数调用时 CreateProcess 失败(git hook 场景,niubash#1002 残面)

1 participant