summaryrefslogtreecommitdiffstats
path: root/src/util_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* make CanonicalizePath report an error on empty pathEvan Martin2011-10-061-12/+19
| | | | Fixes part of issue 121, but the fix exposed a further issue.
* semantic change: allow reaching into parent directories in pathsEvan Martin2011-08-241-25/+30
| | | | | | | | | | | This allows generating build files in a subdirectory of your source tree. - Change CanonicalizePath to accept this. - CanonicalizePath no longer has an error condition, so change it to a void function. I profiled the result against Chrome and it might be ~100ms slower, but that might just be Chrome's size working against me. In any case I think there are lower-hanging performance fruit elsewhere.
* don't mangle absolute paths in the canonicalizerEvan Martin2011-05-171-0/+8
| | | | | We frequently do use absolute paths when depfiles refer to e.g. /usr/include/stdio.h.
* handle foo//bar in CanonicalizePathEvan Martin2011-04-221-0/+5
|
* Move CanonicalizePath into util.h so it can be shared by the other modules.Thiago Farina2011-04-151-0/+50
Also add util_test.cc and move the CanonicalizePathTest into there. Signed-off-by: Thiago Farina <tfarina@chromium.org>