Commit 225acfe
Support long module path (#57335)
* Support long path
* while (true)
* Calculate new length based on array length
* Add a test
* use a smaller value to ensure that at least for DEBUG builds
we test the code path that rents a bigger array from ArrayPool
* add few extra asserts to the test to see why it fails in CI
* Assembly.LoadFile used the way this test is implemented fails on Mono
* don't run the test on Windows 7, for some reason it does not work
* Apply suggestions from code review
Co-authored-by: Stephen Toub <[email protected]>
* handle truncated module names, simplify the implementation and dispose tmp modules before throwing exception
* make sure that when the module is not found by the test, the test runner prints available module paths
* Apply suggestions from code review
Co-authored-by: Stephen Toub <[email protected]>
* polishing
Co-authored-by: NextTurn <[email protected]>
Co-authored-by: Stephen Toub <[email protected]>1 parent 0a1ff5b commit 225acfe
File tree
2 files changed
+45
-13
lines changed- src/libraries/System.Diagnostics.Process
- src/System/Diagnostics
- tests
2 files changed
+45
-13
lines changedLines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
135 | 141 | | |
136 | 142 | | |
137 | 143 | | |
| |||
162 | 168 | | |
163 | 169 | | |
164 | 170 | | |
165 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
166 | 179 | | |
167 | 180 | | |
| 181 | + | |
168 | 182 | | |
169 | 183 | | |
170 | 184 | | |
171 | 185 | | |
172 | 186 | | |
173 | 187 | | |
174 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
175 | 195 | | |
176 | 196 | | |
| 197 | + | |
177 | 198 | | |
178 | 199 | | |
179 | 200 | | |
180 | 201 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
184 | 209 | | |
185 | 210 | | |
186 | 211 | | |
| |||
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
98 | 101 | | |
99 | 102 | | |
100 | | - | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| 108 | + | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | | - | |
| 114 | + | |
111 | 115 | | |
112 | 116 | | |
113 | 117 | | |
114 | | - | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
| 124 | + | |
119 | 125 | | |
120 | | - | |
| 126 | + | |
| 127 | + | |
121 | 128 | | |
122 | 129 | | |
123 | 130 | | |
0 commit comments