From a791e913048801a2a74beaea42b992c380eb8c2c Mon Sep 17 00:00:00 2001 From: mingwei xue Date: Thu, 8 Aug 2024 03:38:57 +0000 Subject: [PATCH] Fix SnapshotTest crash For Android 12 vendor project, SnapshotTestEnvironment setup is skipped. So, test_device is not initialized, which will cause other tests to fail. Change-Id: I6ce6a9e7ea2c210e25c2a5ffadaaa6348086ea7f BUG:350678717 Test:run vts -m vts_libsnapshot_test --- fs_mgr/libsnapshot/snapshot_test.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/fs_mgr/libsnapshot/snapshot_test.cpp b/fs_mgr/libsnapshot/snapshot_test.cpp index b2e36d426..d66490c5e 100644 --- a/fs_mgr/libsnapshot/snapshot_test.cpp +++ b/fs_mgr/libsnapshot/snapshot_test.cpp @@ -2840,7 +2840,6 @@ void SnapshotTestEnvironment::SetUp() { // that is fixed, don't call GTEST_SKIP here, but instead call GTEST_SKIP in individual test // suites. RETURN_IF_NON_VIRTUAL_AB_MSG("Virtual A/B is not enabled, skipping global setup.\n"); - RETURN_IF_VENDOR_ON_ANDROID_S_MSG("Test not enabled for Vendor on Android S.\n"); std::vector paths = { // clang-format off