diff options
author | Stefano Galarraga <galarragas@google.com> | 2020-03-11 15:45:10 +0000 |
---|---|---|
committer | Stefano Galarraga <galarragas@google.com> | 2020-03-19 17:59:42 +0000 |
commit | 956bedb93892847596b5f8dcd400f2be5133b04d (patch) | |
tree | 6ec8457d80f7c28a7fe8f3f94f5183642d2c2890 /nn/runtime/test/TestPartitioningRandom.cpp | |
parent | 6ad48c422390ef7fb387fde831e958099209a092 (diff) | |
download | ml-956bedb93892847596b5f8dcd400f2be5133b04d.tar.gz |
Ensures test sources are not built with NDEBUG
Add cflag -UNDEBUG to default built target.
Add a source file that will cause the build of test targets to fail
if NDEBUG is defined.
Bug: 148456997
Test: atest NeuralNetworksTest_static
Change-Id: I1473cf99702ccf6e0b3b5f68f8fe32b9b0244d5f
Diffstat (limited to 'nn/runtime/test/TestPartitioningRandom.cpp')
-rw-r--r-- | nn/runtime/test/TestPartitioningRandom.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/nn/runtime/test/TestPartitioningRandom.cpp b/nn/runtime/test/TestPartitioningRandom.cpp index f7cde3a0f..138f3592c 100644 --- a/nn/runtime/test/TestPartitioningRandom.cpp +++ b/nn/runtime/test/TestPartitioningRandom.cpp @@ -14,8 +14,6 @@ * limitations under the License. */ -#undef NDEBUG - #include <android-base/logging.h> #include <gtest/gtest.h> #include <unistd.h> |