Enable tests using ASharedMemory_create in TestValidation.cpp (#1164)
author김수진/동작제어Lab(SR)/Engineer/삼성전자 <sjsujin.kim@samsung.com>
Mon, 14 May 2018 00:03:01 +0000 (09:03 +0900)
committer서상민/동작제어Lab(SR)/Senior Engineer/삼성전자 <sangmin7.seo@samsung.com>
Mon, 14 May 2018 00:03:01 +0000 (09:03 +0900)
commit755233c751b31d38b6a5d1533863cdcbf1504c09
tree0390b6e920addcc33f3b0a539c859291668e8774
parentfbc8ef0b411094a299993d2811e106c11fc3de83
Enable tests using ASharedMemory_create in TestValidation.cpp (#1164)

* Enable tests using ASharedMemory_create in TestValidation.cpp for NN Runtime tests

We've commented out the tests using `ASharedMemory_create` in `TestValidation.cpp` for NN Runtime tests. But I figured out it's ok to use `ashmem_create_region` instead of `ASharedMemory_create` likes [Memory.cpp](https://github.sec.samsung.net/STAR/nnfw/blob/master/runtimes/nn/runtime/Memory.cpp#L34)

So it seems it will be able to enable the tests using `ASharedMemory_create` in `TestValidation.cpp`.

- Add target includes in nn runtime
- Check bad states
- Enable tests

Close : #1163

Signed-off-by: sjsujinkim <sjsujin.kim@samsung.com>
runtimes/nn/CMakeLists.txt
runtimes/nn/runtime/ExecutionBuilder.cpp
runtimes/nn/runtime/ModelBuilder.cpp
runtimes/tests/neural_networks_test/TestValidation.cpp