mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 22:40:03 -04:00
test: exercise directory iterator beyond range-for
This commit is contained in:
parent
49adb18131
commit
19a4bc88e8
@ -1114,6 +1114,11 @@ void check_compat(logger& lgr, reader::filesystem_v2 const& fs,
|
||||
paths.emplace_back(dev.unix_path());
|
||||
}
|
||||
EXPECT_EQ(expected, paths) << td;
|
||||
paths.clear();
|
||||
for (auto it = dir->begin(); it != dir->end();) {
|
||||
paths.emplace_back((it++)->unix_path());
|
||||
}
|
||||
EXPECT_EQ(expected, paths) << td;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user