Added missing ASSERT_NE.
Test was failing with segmentation fault (and crashing whole VTS) when device was not available. Change-Id: Id0f28d061dc5858fa00ef1bac5f7aa467d860864
This commit is contained in:
parent
02b43050d9
commit
70d25b813e
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ class CompilationCachingTest : public NeuralnetworksHidlTest {
|
|||
protected:
|
||||
void SetUp() override {
|
||||
NeuralnetworksHidlTest::SetUp();
|
||||
ASSERT_NE(device.get(), nullptr);
|
||||
|
||||
// Create cache directory.
|
||||
char cacheDirTemp[] = "/data/local/tmp/TestCompilationCachingXXXXXX";
|
||||
|
|
Loading…
Reference in a new issue