From 70d25b813e26defdef6defee3f238e8065a89bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Guihot?= Date: Tue, 12 Feb 2019 16:22:44 -0800 Subject: [PATCH] Added missing ASSERT_NE. Test was failing with segmentation fault (and crashing whole VTS) when device was not available. Change-Id: Id0f28d061dc5858fa00ef1bac5f7aa467d860864 --- neuralnetworks/1.2/vts/functional/CompilationCachingTests.cpp | 1 + 1 file changed, 1 insertion(+) 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";