[NNAPI Unittest] Fix environment variable setup (#411)
author박종현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh1302.park@samsung.com>
Wed, 4 Apr 2018 06:41:39 +0000 (15:41 +0900)
committer김정현/동작제어Lab(SR)/Senior Engineer/삼성전자 <jh0822.kim@samsung.com>
Wed, 4 Apr 2018 06:41:39 +0000 (15:41 +0900)
This commit fix IntVar class to set an internal variable correctly from
environments.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
tools/nnapi_unittests/lib/env.cpp

index 1638dce..9d589cf 100644 (file)
@@ -7,5 +7,5 @@
 //
 IntVar::IntVar(const std::string &name, int32_t value) : _value{value}
 {
-  nnfw::util::env::IntAccessor{name}.access(value);
+  nnfw::util::env::IntAccessor{name}.access(_value);
 }