libfiemap: Ignore userdata requirements in fiemap_writer_test when running a DSU.
The test is guaranteed to fail because userdata is itself a fiemap-backed device. Bug: 154447105 Test: fiemap_writer_test on DSU Change-Id: Ied35da0eb7aba3daca7ed430f006bf1e90e21dca
This commit is contained in:
parent
b0765fd679
commit
cc2bf6b9d3
|
@ -69,6 +69,7 @@ cc_test {
|
|||
"libdm",
|
||||
"libfs_mgr",
|
||||
"liblog",
|
||||
"libgsi",
|
||||
],
|
||||
|
||||
data: [
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
#include <libdm/loop_control.h>
|
||||
#include <libfiemap/fiemap_writer.h>
|
||||
#include <libfiemap/split_fiemap_writer.h>
|
||||
#include <libgsi/libgsi.h>
|
||||
|
||||
#include "utility.h"
|
||||
|
||||
|
@ -148,8 +149,11 @@ TEST_F(FiemapWriterTest, CheckBlockDevicePath) {
|
|||
FiemapUniquePtr fptr = FiemapWriter::Open(testfile, gBlockSize);
|
||||
EXPECT_EQ(fptr->size(), gBlockSize);
|
||||
EXPECT_EQ(fptr->bdev_path().find("/dev/block/"), size_t(0));
|
||||
|
||||
if (!android::gsi::IsGsiRunning()) {
|
||||
EXPECT_EQ(fptr->bdev_path().find("/dev/block/dm-"), string::npos);
|
||||
}
|
||||
}
|
||||
|
||||
TEST_F(FiemapWriterTest, CheckFileCreated) {
|
||||
FiemapUniquePtr fptr = FiemapWriter::Open(testfile, 32768);
|
||||
|
|
Loading…
Reference in New Issue