-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix absolute/relative path handling in
--affected
The conditional was incorrectly reversed due to my misreading of `std::error_code` so we never attempted to look up the absolute or relative path for paths passed in to `--affected`. It was a bit tricky to do unit test for absolute paths as they need to be generated beforehand. This commit is less lazy and includes unit tests for absolute and relative path handling by generating files in the CMake generation step.
- Loading branch information
1 parent
775d78b
commit f3a3d3e
Showing
6 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# These files are generated at configure time | ||
changed.txt | ||
build.ninja | ||
expected.ninja |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include build.ninja |
Empty file.