Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70d25b81 authored by Hervé Guihot's avatar Hervé Guihot
Browse files

Added missing ASSERT_NE.

Test was failing with segmentation fault (and crashing whole VTS) when
device was not available.

Change-Id: Id0f28d061dc5858fa00ef1bac5f7aa467d860864
parent 02b43050
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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";