aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-23 10:51:58 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-23 10:51:58 -0600
commitd0e78fbb03e89c8a070e0c50daeda06b055669fc (patch)
treeed1177597f5980718e8a67e512223a8582a85c43
parentabe0552504b067bb5edd95dadaf714db6d2843b6 (diff)
re-add Pos origin in tests
-rw-r--r--src/libutil/tests/logging.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libutil/tests/logging.cc b/src/libutil/tests/logging.cc
index 6a6fb4ac3..ac4a1b161 100644
--- a/src/libutil/tests/logging.cc
+++ b/src/libutil/tests/logging.cc
@@ -163,7 +163,7 @@ namespace nix {
"yellow",
"values"),
.nixCode = NixCode {
- .errPos = Pos(problem_file, 40, 13),
+ .errPos = Pos(foFile, problem_file, 40, 13),
.prevLineOfCode = "previous line of code",
.errLineOfCode = "this is the problem line of code",
.nextLineOfCode = "next line of code",
@@ -186,7 +186,7 @@ namespace nix {
"yellow",
"values"),
.nixCode = NixCode {
- .errPos = Pos(problem_file, 40, 13)
+ .errPos = Pos(foFile, problem_file, 40, 13)
}});
auto str = testing::internal::GetCapturedStderr();
@@ -202,7 +202,7 @@ namespace nix {
.name = "error name",
.hint = hintfmt("hint %1%", "only"),
.nixCode = NixCode {
- .errPos = Pos(problem_file, 40, 13)
+ .errPos = Pos(foFile, problem_file, 40, 13)
}});
auto str = testing::internal::GetCapturedStderr();
@@ -241,7 +241,7 @@ namespace nix {
"yellow",
"values"),
.nixCode = NixCode {
- .errPos = Pos(problem_file, 40, 13),
+ .errPos = Pos(foFile, problem_file, 40, 13),
.prevLineOfCode = std::nullopt,
.errLineOfCode = "this is the problem line of code",
.nextLineOfCode = std::nullopt