mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-15 02:18:39 +08:00
Attempt to fix windows build
This commit is contained in:
parent
c186d363c6
commit
eb80321ea3
@ -191,7 +191,7 @@ TEST_CASE("/fileio/truncateAndRead") {
|
|||||||
state std::array<char, 4096> data;
|
state std::array<char, 4096> data;
|
||||||
wait(f->sync());
|
wait(f->sync());
|
||||||
wait(f->truncate(4096));
|
wait(f->truncate(4096));
|
||||||
int length = wait(f->read(data.begin(), 4096, 0));
|
int length = wait(f->read(&data[0], 4096, 0));
|
||||||
ASSERT(length == 4096);
|
ASSERT(length == 4096);
|
||||||
for (auto c : data) {
|
for (auto c : data) {
|
||||||
ASSERT(c == '\0');
|
ASSERT(c == '\0');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user