diff options
author | MarcoFalke <falke.marco@gmail.com> | 2019-01-05 00:53:11 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2019-01-05 00:53:13 +0100 |
commit | fe5a70b9fefa0548f497a749746f53f3d7fd0ebb (patch) | |
tree | 1f6dea0c91c8baf4079517800f10156ef74377f3 /test/sanitizer_suppressions/lsan | |
parent | f7e182a973ed66b4c11dc6239e57016655503b4c (diff) | |
parent | 6b25f29a91867e1cd081777bc9fb6338f0c0e739 (diff) |
Merge #15099: tests: Use std::vector API for construction of test data
6b25f29a91 Use std::vector API for construction of test data. (Daniel Kraft)
Pull request description:
For constructing test scripts, use `std::vector` and, in particular, `std::vector::insert` to insert 20 zero bytes rather than listing the full array of bytes explicitly. This makes the code easier to read and makes it immediately obvious what the structure of the data is, without having to count the zeros to understand it.
Of course, that is a matter of taste - so if you disagree that the change makes the code easier to read, let me know.
This has been split out of #14752.
Tree-SHA512: af82d447f0077259049f1da2d6f86a6c29723c6e17bd342e9a9ecf37b13bddff40643af95c8b3a3260765a5591713d31ca8a45a5a0c20a12c139aee53ea150da
Diffstat (limited to 'test/sanitizer_suppressions/lsan')
0 files changed, 0 insertions, 0 deletions