aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/files.cpp
diff options
context:
space:
mode:
authornicole mazzuca <mazzucan@outlook.com>2020-04-09 16:33:36 -0700
committerGitHub <noreply@github.com>2020-04-09 16:33:36 -0700
commit1448db9d6f1a1ebe661c8d7b850a255c63002a01 (patch)
tree6ccc4db0efdd76b71c37f383952970837d0e6a23 /toolsrc/src/vcpkg-test/files.cpp
parent47a4913834d0f1e16a3340a8718c8bcdb8431f45 (diff)
downloadvcpkg-1448db9d6f1a1ebe661c8d7b850a255c63002a01.tar.gz
vcpkg-1448db9d6f1a1ebe661c8d7b850a255c63002a01.zip
[vcpkg-test] Fix the check for ability to make symlinks (#10543)
The old check checked to see if the computer was in developer mode _OR_ allowed sideloading apps, but we want _only_ developer mode.
Diffstat (limited to 'toolsrc/src/vcpkg-test/files.cpp')
-rw-r--r--toolsrc/src/vcpkg-test/files.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/toolsrc/src/vcpkg-test/files.cpp b/toolsrc/src/vcpkg-test/files.cpp
index d8bc5ba74..cbe1e81c3 100644
--- a/toolsrc/src/vcpkg-test/files.cpp
+++ b/toolsrc/src/vcpkg-test/files.cpp
@@ -65,8 +65,6 @@ namespace
Width width = Width{5},
CurrentDepth current_depth = CurrentDepth{0})
{
- std::random_device rd;
-
// we want ~70% of our "files" to be directories, and then a third
// each of the remaining ~30% to be regular files, directory symlinks,
// and regular symlinks
@@ -132,7 +130,7 @@ namespace
CHECK_EC_ON_FILE(base_link, ec);
vcpkg::Test::create_symlink(base_link, base, ec);
}
- else // type == directory_symlink_tag
+ else // file_type == directory_symlink_tag
{
// directory symlink
auto parent = base;