Commit 09cd90d
Skip Unix-only attach tests on Windows
Two new settings tests — cli_layer_ok_when_attached_to_live_process
and attached_pid_for_live_process_resolves_project_root — assert that
attaching to a live pid resolves to Some(...). But process_for_pid is
Unix-only in v1 (sysinfo doesn't expose another process's environ on
Windows, so the function early-returns None on that target). Add the
same cfg!(target_os = "windows") early-return guard used by
current_uid_resolves_on_unix.
The Windows code path is still covered by the existing tests that
exercise the None branch (attached_pid_for_unknown_process_emits_diagnostic
runs on every OS).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f49836c commit 09cd90d
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
875 | 882 | | |
876 | 883 | | |
877 | 884 | | |
| |||
887 | 894 | | |
888 | 895 | | |
889 | 896 | | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
895 | 906 | | |
896 | 907 | | |
897 | 908 | | |
| |||
0 commit comments