diff options
| author | Nicole Mazzuca <t-nimaz@microsoft.com> | 2019-07-18 16:40:52 -0700 |
|---|---|---|
| committer | Nicole Mazzuca <t-nimaz@microsoft.com> | 2019-07-18 19:03:46 -0700 |
| commit | fddebb75da034752fb267ba121497ba58157bb79 (patch) | |
| tree | 799f42da4546c6b9eb9fd18d187d63ab69826f6b /toolsrc/src/tests.files.cpp | |
| parent | f599f19bad8fd97b60f41063537be2e4ecef3ca7 (diff) | |
| download | vcpkg-fddebb75da034752fb267ba121497ba58157bb79.tar.gz vcpkg-fddebb75da034752fb267ba121497ba58157bb79.zip | |
clang-format all the things
Diffstat (limited to 'toolsrc/src/tests.files.cpp')
| -rw-r--r-- | toolsrc/src/tests.files.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/toolsrc/src/tests.files.cpp b/toolsrc/src/tests.files.cpp index e60662fd9..482675c34 100644 --- a/toolsrc/src/tests.files.cpp +++ b/toolsrc/src/tests.files.cpp @@ -3,8 +3,8 @@ #include <vcpkg/base/files.h> #include <vcpkg/base/strings.h> -#include <iostream> #include <filesystem> // required for filesystem::create_{directory_}symlink +#include <iostream> #include <random> #include <windows.h> @@ -31,11 +31,11 @@ namespace UnitTest1 } else { - // if we get a permissions error, we still know that we're in developer mode + // if we get a permissions error, we still know that we're in developer mode ALLOW_SYMLINKS = true; } - if (status == ERROR_SUCCESS) RegCloseKey(key); + if (status == ERROR_SUCCESS) RegCloseKey(key); } private: @@ -105,13 +105,17 @@ namespace UnitTest1 // if we're at the max depth, we only want to build non-directories std::uint64_t file_type; - if (depth < max_depth) { + if (depth < max_depth) + { file_type = uid{directory_min_tag, regular_symlink_tag}(urbg); - } else { + } + else + { file_type = uid{regular_file_tag, regular_symlink_tag}(urbg); } - if (!ALLOW_SYMLINKS && file_type > regular_file_tag) { + if (!ALLOW_SYMLINKS && file_type > regular_file_tag) + { file_type = regular_file_tag; } |
