diff options
author | Xusong Wang <xusongw@google.com> | 2019-01-25 14:44:59 -0800 |
---|---|---|
committer | Xusong Wang <xusongw@google.com> | 2019-01-25 14:44:59 -0800 |
commit | fa85604da3c8162fcee2622718838e5cd755711a (patch) | |
tree | 89834ea0b0fefa9a63d7a148216ddb65cd4332a0 /nn/runtime/test/TestValidation.cpp | |
parent | e016c954cc9c58c32e7d298460b8ce04366520ea (diff) | |
download | ml-fa85604da3c8162fcee2622718838e5cd755711a.tar.gz |
Fix ValidationTestCompilationForDevices.ExecutionTiming.
Bug: 123377751
Test: NeuralNetworksTest_static
Change-Id: I3ebd65117cc702ad5e1e46e350a801e7b493a8c6
Diffstat (limited to 'nn/runtime/test/TestValidation.cpp')
-rw-r--r-- | nn/runtime/test/TestValidation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nn/runtime/test/TestValidation.cpp b/nn/runtime/test/TestValidation.cpp index 5a5e70ff8..55e0fbb72 100644 --- a/nn/runtime/test/TestValidation.cpp +++ b/nn/runtime/test/TestValidation.cpp @@ -1119,6 +1119,9 @@ TEST_F(ValidationTestInvalidCompilation, CreateExecutionWithInvalidCompilation) } TEST_F(ValidationTestCompilationForDevices, ExecutionTiming) { + if (!mCompilation) { + return; + } ASSERT_EQ(ANeuralNetworksCompilation_finish(mCompilation), ANEURALNETWORKS_NO_ERROR); // Assume there's a single device. |