From e2f34523ddbc10eeda877c5b27eaca336832ac33 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Wed, 21 Sep 2016 12:32:28 -0700 Subject: [PATCH] [integration] Add check that the targets file was properly copied --- toolsrc/src/commands_integration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolsrc/src/commands_integration.cpp b/toolsrc/src/commands_integration.cpp index 368ff0581a..0b1aa3696c 100644 --- a/toolsrc/src/commands_integration.cpp +++ b/toolsrc/src/commands_integration.cpp @@ -202,6 +202,8 @@ namespace vcpkg default: Checks::unreachable(); } + + Checks::check_exit(fs::exists(system_wide_targets_file), "Error: failed to copy targets file to %s", system_wide_targets_file.string()); } const fs::path appdata_src_path = tmp_dir / "vcpkg.user.targets";