Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a791e913 authored by mingwei xue's avatar mingwei xue
Browse files

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
parent 0fe7deb2
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -2840,7 +2840,6 @@ void SnapshotTestEnvironment::SetUp() {
    // that is fixed, don't call GTEST_SKIP here, but instead call GTEST_SKIP in individual test
    // that is fixed, don't call GTEST_SKIP here, but instead call GTEST_SKIP in individual test
    // suites.
    // suites.
    RETURN_IF_NON_VIRTUAL_AB_MSG("Virtual A/B is not enabled, skipping global setup.\n");
    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<std::string> paths = {
    std::vector<std::string> paths = {
            // clang-format off
            // clang-format off