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:
Hervé Guihot 2019-02-12 16:22:44 -08:00
parent 02b43050d9
commit 70d25b813e

View file

@ -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";