Merge "libsnapshot: Remove flaky image creation test."
This commit is contained in:
commit
4f351c3cf5
|
@ -2660,7 +2660,6 @@ class ImageManagerTest : public SnapshotTest, public WithParamInterface<uint64_t
|
||||||
}
|
}
|
||||||
void TearDown() override {
|
void TearDown() override {
|
||||||
RETURN_IF_NON_VIRTUAL_AB();
|
RETURN_IF_NON_VIRTUAL_AB();
|
||||||
return; // BUG(149738928)
|
|
||||||
|
|
||||||
EXPECT_TRUE(!image_manager_->BackingImageExists(kImageName) ||
|
EXPECT_TRUE(!image_manager_->BackingImageExists(kImageName) ||
|
||||||
image_manager_->DeleteBackingImage(kImageName));
|
image_manager_->DeleteBackingImage(kImageName));
|
||||||
|
@ -2669,19 +2668,6 @@ class ImageManagerTest : public SnapshotTest, public WithParamInterface<uint64_t
|
||||||
std::unique_ptr<LowSpaceUserdata> userdata_;
|
std::unique_ptr<LowSpaceUserdata> userdata_;
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST_P(ImageManagerTest, CreateImageEnoughAvailSpace) {
|
|
||||||
if (userdata_->available_space() == 0) {
|
|
||||||
GTEST_SKIP() << "/data is full (" << userdata_->available_space()
|
|
||||||
<< " bytes available), skipping";
|
|
||||||
}
|
|
||||||
ASSERT_TRUE(image_manager_->CreateBackingImage(kImageName, userdata_->available_space(),
|
|
||||||
IImageManager::CREATE_IMAGE_DEFAULT))
|
|
||||||
<< "Should be able to create image with size = " << userdata_->available_space()
|
|
||||||
<< " bytes";
|
|
||||||
ASSERT_TRUE(image_manager_->DeleteBackingImage(kImageName))
|
|
||||||
<< "Should be able to delete created image";
|
|
||||||
}
|
|
||||||
|
|
||||||
TEST_P(ImageManagerTest, CreateImageNoSpace) {
|
TEST_P(ImageManagerTest, CreateImageNoSpace) {
|
||||||
uint64_t to_allocate = userdata_->free_space() + userdata_->bsize();
|
uint64_t to_allocate = userdata_->free_space() + userdata_->bsize();
|
||||||
auto res = image_manager_->CreateBackingImage(kImageName, to_allocate,
|
auto res = image_manager_->CreateBackingImage(kImageName, to_allocate,
|
||||||
|
|
Loading…
Reference in New Issue