diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 13:18:22 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 15:19:50 +0200 |
commit | 277be6dd08633dbebfda93afdfc6b5cb57e053e0 (patch) | |
tree | 6c86157c7f93636459361264054753a1dc9d33e9 /test/other_tools/git_operations/critical_git_ops.test.cpp | |
parent | 419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (diff) | |
download | justbuild-277be6dd08633dbebfda93afdfc6b5cb57e053e0.tar.gz |
Use properly included standard library types by default
Diffstat (limited to 'test/other_tools/git_operations/critical_git_ops.test.cpp')
-rw-r--r-- | test/other_tools/git_operations/critical_git_ops.test.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/other_tools/git_operations/critical_git_ops.test.cpp b/test/other_tools/git_operations/critical_git_ops.test.cpp index 231c61d7..8c712d22 100644 --- a/test/other_tools/git_operations/critical_git_ops.test.cpp +++ b/test/other_tools/git_operations/critical_git_ops.test.cpp @@ -14,6 +14,7 @@ #include <algorithm> // std::find #include <atomic> +#include <cstddef> #include <cstdlib> // std::system #include <filesystem> #include <optional> @@ -146,9 +147,9 @@ TEST_CASE("Critical git operations", "[critical_git_op_map]") { // Add ops to the map. None should throw, as repeating the same operation // should retrieve the value from the map, not call the operation again. // helper lists - const std::vector<size_t> ops_all{ + const std::vector<std::size_t> ops_all{ 0, 1, 2, 3, 4}; // indices of all ops tested - const std::vector<size_t> ops_with_result{ + const std::vector<std::size_t> ops_with_result{ 0, 4}; // indices of ops that return a non-empty string // Add to the map all ops multiple times for ([[maybe_unused]] auto const& i : @@ -203,7 +204,7 @@ TEST_CASE("Critical git operations", "[critical_git_op_map]") { .op_type = GitOpType::GET_HEAD_ID}}, [&ops_all, &ops_with_result](auto const& values) { // check operations - for (size_t const& i : ops_all) { + for (std::size_t const& i : ops_all) { auto res = *values[i]; REQUIRE(res.git_cas); REQUIRE(res.result); |