File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 62
62
if let Some ( value) = var_os_func ( name) {
63
63
let pf = Path :: new ( & value) ;
64
64
if pf. is_relative ( ) {
65
+ // This should never happen, but if it does then we should not use the path.
65
66
continue ;
66
67
} ;
68
+ // Chain components to weakly normalize the path, mostly just for its separators.
67
69
let components = pf. iter ( ) . chain ( suffix. iter ( ) ) ;
68
70
let location = PathBuf :: from_iter ( components) ;
69
71
if !locations. contains ( & location) {
@@ -429,8 +431,6 @@ mod tests {
429
431
430
432
// Check that `ALTERNATIVE_LOCATIONS` correspond to them, with the correct subdirectories.
431
433
GitBinSuffixes :: assert_from ( & pf, locations) . assert_architectures ( ) ;
432
-
433
- // FIXME: Assert that the directory separators are `/` in the underlying `OsString`s.
434
434
}
435
435
436
436
#[ test]
You can’t perform that action at this time.
0 commit comments