commit | 70d25b813e26defdef6defee3f238e8065a89bb6 | [log] [tgz] |
---|---|---|
author | Hervé Guihot <hguihot@google.com> | Tue Feb 12 16:22:44 2019 -0800 |
committer | Hervé Guihot <hguihot@google.com> | Tue Feb 12 16:22:44 2019 -0800 |
tree | 05b9323d51de062e28806e2baa5ef010ddfa920d | |
parent | 02b43050d9b2998dc08e074196d3bc5f984ddcdf [diff] |
Added missing ASSERT_NE. Test was failing with segmentation fault (and crashing whole VTS) when device was not available. Change-Id: Id0f28d061dc5858fa00ef1bac5f7aa467d860864
diff --git a/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp b/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp index 454aa1f..d715d24 100644 --- a/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp +++ b/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp
@@ -86,6 +86,7 @@ protected: void SetUp() override { NeuralnetworksHidlTest::SetUp(); + ASSERT_NE(device.get(), nullptr); // Create cache directory. char cacheDirTemp[] = "/data/local/tmp/TestCompilationCachingXXXXXX";