summaryrefslogtreecommitdiffstats
path: root/src/disk_interface_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Support both slashes on Windows when making output dirsScott Graham2014-04-031-1/+12
|
* make DiskInterfaceTest.StatBadPath quietEvan Martin2013-04-191-0/+2
| | | | | | Add a flag to temporarily suppress error output. Fixes issue #281.
* plumb DepsLog load through BuilderEvan Martin2013-04-081-1/+1
|
* fix all "class" -> "struct"Evan Martin2012-12-291-2/+1
|
* move BuildLog to DependencyScanEvan Martin2012-09-041-1/+1
| | | | | | | The build log is needed in computing whether an edge is dirty, so I think it belongs here. (It's a bit weird that Builder needs to reach into it to record completed commands, maybe it will become cleaner with more thought.)
* split out dirty recomputation logic from Edge classEvan Martin2012-09-021-4/+7
| | | | | | | | | | Rather than passing States and DiskInterfaces through all the calls, put the necessary ambient information in a new DependencyScan object and move the code accordingly. Note: I didn't move the source location of the functions to preserve history, though this does result in a sort of weird order for the functions in graph.cc.
* Put & operator with the type rather than the variable name.Thiago Farina2012-04-281-1/+1
| | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* Fix StatBadPath for Windows 7Qingning Huo2012-03-131-2/+5
| | | | | | | The StatBadPath test expects both Windows and Linux to reject a path name with 512 characters. However, it seems that such path is actually acceptable to Windows 7. The change constructs a different path name that is invalid on Windows.
* Treat paths of the form "existing-file/something" as non-existentPeter Collingbourne2012-03-071-12/+14
| | | | | | | | Some people like to construct phony target names by appending a "/something" suffix to an existing target "foo". But if "foo" is an existing file, stat will report ENOTDIR for this path, causing ninja to spew errors. Fix this by treating ENOTDIR in the same way as we do ENOENT -- as a non-existent path.
* Fix tabs, typosPetrWolf2012-02-141-2/+2
|
* Response filesunknown2012-02-091-0/+4
|
* migrate tempdir code to test.ccEvan Martin2012-01-061-71/+4
|
* convert all time_t to a new TimeStamp typeEvan Martin2012-01-051-4/+4
|
* windows: handle ERROR_PATH_NOT_FOUNDEvan Martin2011-12-231-5/+6
| | | | From Frances <frances.buontempo@gmail.com>.
* windows: use GetFileAttributesEx instead of statEvan Martin2011-12-201-2/+7
| | | | | | | | | From a Hacker News comment: "Recent finding, that sped up our systems from 15->3sec on 300,000+ files filestamp check was to move from _stat to GetFileAttributesEx." I do recall reading that calls to stat() on Windows were one of the potential reasons Subversion is so slow on Windows...
* make Node::in_edge_ privateEvan Martin2011-12-071-8/+4
|
* make Node::dirty_ privateEvan Martin2011-12-071-6/+6
|
* merge FileStat into NodeEvan Martin2011-12-071-4/+4
| | | | | | The two were always one-to-one anyway. I started adding accessors to FileStat and then realized most users wanted them on Node and that forwarding them through was silly.
* disable the 'unused parameter' warningEvan Martin2011-12-051-3/+3
| | | | It was firing too often, and hadn't uncovered any bugs.
* Fix compilation warning in Ninja's test suite.Nicolas Despres2011-11-211-3/+3
|
* Split ninja_test.cc into state_test.cc and disk_interface_test.ccThiago Farina2011-09-111-0/+99
| | | | Signed-off-by: Thiago Farina <tfarina@chromium.org>
* Fix windows build by moving mkdtemp() implementation from ninja_test.cc to ↵Thiago Farina2011-09-081-0/+29
| | | | | | disk_interface_test.cc Signed-off-by: Thiago Farina <tfarina@chromium.org>
* Move DiskInterfaceTest into its own source file.Thiago Farina2011-09-071-0/+131
TEST=ninja_test --gtest_filter=DiskInterface* Signed-off-by: Thiago Farina <tfarina@chromium.org>