[coco] Use InstrManagerTest fixture for create_UnitF (#1529)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 18 Sep 2018 08:18:07 +0000 (17:18 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 18 Sep 2018 08:18:07 +0000 (17:18 +0900)
This commit rewrites create_UnitF test using InstrManagerTest
fixture.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/coco/core/src/IR/InstrManager.test.cpp

index 3b18d75..96d5d05 100644 (file)
@@ -15,15 +15,11 @@ protected:
 };
 } // namespace
 
-TEST(IR_INSTR_MANAGER, create_UnitF)
+TEST_F(InstrManagerTest, create_UnitF)
 {
-  coco::InstrManager mgr;
-
-  // Conv2D
-  {
-    auto ins = mgr.create<coco::UnitF>();
-    ASSERT_NE(ins, nullptr);
-  }
+  auto ins = mgr.create<coco::UnitF>();
+  ASSERT_NE(ins, nullptr);
+  mgr.destroy(ins);
 }
 
 TEST_F(InstrManagerTest, create_Shuffle)