Commit 21f3634
committed
fix(tests): gate Linux-only env test harness to avoid dead-code on macOS/Windows
CI (nightly + -D warnings) flagged env_lock, EnvGuard, and the
Mutex/OnceLock imports as dead code on macOS — the test harness is
only used by two tests gated on cfg(target_os = "linux"). Gate the
harness and its imports on the same cfg so non-Linux targets are
warning-clean.
Pre-existing issue; fixing as part of the #7 CI cleanup so my latest
commits don't inherit the macOS test failures.1 parent e6c158f commit 21f3634
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
| 116 | + | |
115 | 117 | | |
116 | 118 | | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
119 | 126 | | |
120 | 127 | | |
| 128 | + | |
121 | 129 | | |
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
| 133 | + | |
125 | 134 | | |
126 | 135 | | |
127 | 136 | | |
128 | 137 | | |
129 | 138 | | |
130 | 139 | | |
| 140 | + | |
131 | 141 | | |
132 | 142 | | |
133 | 143 | | |
| |||
138 | 148 | | |
139 | 149 | | |
140 | 150 | | |
| 151 | + | |
141 | 152 | | |
142 | 153 | | |
143 | 154 | | |
| |||
0 commit comments