Commit 64b3103
committed
test: use absolute and complex paths to test normalization
Previous tests were too simple. Now testing paths that would
actually expose concatenation bugs without normalization:
1. Absolute paths (like Windows C:\path issue)
2. Paths with parent directory (..) that need cleaning
3. Paths with redundant separators (//) that need normalization
These tests verify the fix prevents path duplication like:
/path/test/path/test/file (without normalization)
/path/test/file (with proper normalization)
Addresses review feedback on PR #5674.
Signed-off-by: Sibasis Padhi <[email protected]>1 parent 2be4733 commit 64b3103
1 file changed
+20
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
226 | 232 | | |
227 | 233 | | |
228 | 234 | | |
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
233 | | - | |
234 | | - | |
| 239 | + | |
| 240 | + | |
235 | 241 | | |
236 | 242 | | |
237 | 243 | | |
238 | 244 | | |
239 | | - | |
240 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
241 | 253 | | |
242 | 254 | | |
243 | 255 | | |
| |||
0 commit comments