summaryrefslogtreecommitdiffstats
path: root/src/util_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #401 from syntheticpp/win-network-pathEvan Martin2012-08-171-0/+16
|\ | | | | on windows a network path starts with two backslashes
| * on windows a network path starts with two backslashesPeter Kuemmel2012-08-171-0/+16
| |
* | windows: fix integer truncation issues for helper binariesEvan Martin2012-08-101-3/+3
|/ | | | | Disable the size_t truncation warning. (Note that this leaves on the other truncation-related warnings, like int->char.)
* Re-factor elide code and test it.Nicolas Despres2012-07-311-0/+11
|
* Speed up CanonicalizePath() 6.8% (322ms -> 300ms for chrome empty build).Nico Weber2012-05-041-0/+26
|
* Add a test for empty path in CanonicalizePath().Nicolas Despres2012-02-201-0/+3
| | | | | | | This test covers bug fix introduced by 62e9139740. However, reverting this patch does not trigger a test failure. Maybe, I am not testing on the right platform (Linux). Anyway, in all cases I think this test deserves to be added.
* don't crash when CanonicalizePath removes all path componentsEvan Martin2012-02-041-0/+17
| | | | From a patch from Peter Kuemmel <syntheticpp@gmx.net>.
* Strip ansi escape sequences from subcommand output when not writing to a ↵Nico Weber2012-01-191-0/+17
| | | | smart terminal.
* 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>