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

Commit 8e9ac024 authored by Austin Borger's avatar Austin Borger
Browse files

Camera VTS: Close the session at the end of stream configuration validation

Not calling mSession->close means that there will be multiple concurrent
sessions open, which may not be supported by the device.

Bug: 280559094
Test: Ran on cuttlefish
Change-Id: Ie622fabd4d0be2f8442e90d1c781bbf905172270
parent 85da71a9
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3081,7 +3081,11 @@ TEST_P(CameraAidlTest, validateStreamConfigurations) {
            ASSERT_EQ(blobMinDurations.size(), blobStallDurations.size());
        }

        // Validate other aspects of stream configuration metadata...
        // TODO (b/280887191): Validate other aspects of stream configuration metadata...

        ndk::ScopedAStatus ret = mSession->close();
        mSession = nullptr;
        ASSERT_TRUE(ret.isOk());
    }
}