Commit c6cef61
committed
test: make symlink tree checks filesystem-independent
The probe only checked isSymbolicLink(), but on WSL DrvFs a symlink can 'succeed'
with a mangled readlink - so the probe reported support, exact-match ran, and the
tree still mismatched. Verify readlink() in the probe, and make expectTree
independent of the probe: it tolerates any symlink materialization (real link,
stub file, mangled target, or skipped) by checking the non-symlink structure,
while still catching a real missing-file diff. Symlink correctness stays with the
integrity tests, which run only where symlinks genuinely work.1 parent 5770be0 commit c6cef61
1 file changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
117 | 128 | | |
118 | 129 | | |
119 | 130 | | |
| |||
0 commit comments