mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Merge "Added protections to RenderScript VTS class teardown."
am: 80002c1ff3
Change-Id: I55d1b0432e87068913a0e40cb72717a3a034b1e7
This commit is contained in:
@@ -28,8 +28,10 @@ void RenderscriptHidlTest::SetUp() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void RenderscriptHidlTest::TearDown() {
|
void RenderscriptHidlTest::TearDown() {
|
||||||
context->contextFinish();
|
if (context.get() != nullptr) {
|
||||||
context->contextDestroy();
|
context->contextFinish();
|
||||||
|
context->contextDestroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// A class for test environment setup (kept since this file is a template).
|
// A class for test environment setup (kept since this file is a template).
|
||||||
|
|||||||
Reference in New Issue
Block a user