Skip to content

Commit 51fe752

Browse files
committed
Fix unused variable.
1 parent e86f2f4 commit 51fe752

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/vcpkg-test/dependencies.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,6 +2437,9 @@ TEST_CASE ("formatting plan 1", "[dependencies]")
24372437
UseHeadVersion::No,
24382438
Editable::No);
24392439

2440+
InstallPlanAction install_f(
2441+
{"f", Test::X64_OSX}, scfl_f, pr, RequestType::USER_REQUESTED, UseHeadVersion::No, Editable::No, {}, {}, {});
2442+
24402443
ActionPlan plan;
24412444
{
24422445
auto formatted = format_plan(plan);
@@ -2499,6 +2502,19 @@ TEST_CASE ("formatting plan 1", "[dependencies]")
24992502
" c:x64-osx@1 -- c\n"
25002503
"Additional packages (*) will be modified to complete this operation.\n");
25012504
}
2505+
2506+
plan.install_actions.push_back(std::move(install_f));
2507+
REQUIRE_LINES(format_plan(plan).all_text(),
2508+
"The following packages are already installed:\n"
2509+
" * d:x86-windows@1\n"
2510+
" e:x86-windows@1\n"
2511+
"The following packages will be rebuilt:\n"
2512+
" * a:x64-osx@1\n"
2513+
" * b[1]:x64-osx@1\n"
2514+
" c:x64-osx@1 -- c\n"
2515+
"The following packages will be built and installed:\n"
2516+
" f:x64-osx@1 -- git+https://github.com/microsoft/vcpkg:f54a99d43e600ceea175205850560f6dd37ea6cf\n"
2517+
"Additional packages (*) will be modified to complete this operation.\n");
25022518
}
25032519

25042520
TEST_CASE ("dependency graph API snapshot: host and target")

0 commit comments

Comments
 (0)