diff options
author | Hervé Guihot <hguihot@google.com> | 2019-02-12 16:22:44 -0800 |
---|---|---|
committer | Xusong Wang <xusongw@google.com> | 2019-02-14 10:15:27 -0800 |
commit | ac7ac525b27e49a8fa75f98e87a4cb02d93e7628 (patch) | |
tree | 518476c840b9c6a486b3d8f6224a3f08e5b66e68 /neuralnetworks | |
parent | 6e06a5ce410f85aa8f888a0cb54115e54bd729ef (diff) | |
download | platform_hardware_interfaces-ac7ac525b27e49a8fa75f98e87a4cb02d93e7628.tar.gz platform_hardware_interfaces-ac7ac525b27e49a8fa75f98e87a4cb02d93e7628.tar.bz2 platform_hardware_interfaces-ac7ac525b27e49a8fa75f98e87a4cb02d93e7628.zip |
Added missing ASSERT_NE.
Test was failing with segmentation fault (and crashing whole VTS) when
device was not available.
Change-Id: Id0f28d061dc5858fa00ef1bac5f7aa467d860864
Merged-In: Id0f28d061dc5858fa00ef1bac5f7aa467d860864
(cherry picked from commit 70d25b813e26defdef6defee3f238e8065a89bb6)
Diffstat (limited to 'neuralnetworks')
-rw-r--r-- | neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp b/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp index 454aa1f921..d715d24b0b 100644 --- a/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp +++ b/neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp @@ -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"; |