DescriptionNormalize paths in GN.
Most SourceFile creation goes through SourceDir.Resolve which normalizes "." and "..". But there are a few cases that just go through the SourceFile constructor directly. Explicitly normalize those cases.
This updates the PathOutput unit test since it was written to assume SourceFiles were not normalized. This is testing escaping which is orthogonal, so I changed the test accordingly. Some changed to OutputFiles which are already considered processed and not normalized, and I just deleted another backslash case which was redundantly testing the same thing.
BUG=505816
Committed: https://crrev.com/8440203c77e972d5d5289f75ead381821e0756c5
Cr-Commit-Position: refs/heads/master@{#336854}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Actually "git add" the test file. #
Messages
Total messages: 12 (5 generated)
|