From 960312b199207cc14d8803adedec81386fd81350 Mon Sep 17 00:00:00 2001 From: SooChan Lim Date: Tue, 20 Feb 2018 20:31:53 +0900 Subject: [PATCH] utest: remove UtInit testcase Change-Id: I3d17d15ae4f1990bbb6357ccc973fdf8c25061e1 --- utests/ut.cpp | 19 ------------------- utests/ut.h | 13 ------------- 2 files changed, 32 deletions(-) diff --git a/utests/ut.cpp b/utests/ut.cpp index 0707975..2c3ce8a 100644 --- a/utests/ut.cpp +++ b/utests/ut.cpp @@ -1,24 +1,5 @@ #include "ut.h" -void UtInit::UtBufmgrInit() -{ - ut_set_default_tbm_env(); - - bufmgr = tbm_bufmgr_init(-1); - ASSERT_TRUE(bufmgr != NULL); -} - -void UtInit::SetUp() -{ - bufmgr = NULL; -} - -void UtInit::TearDown() -{ - if (bufmgr) - tbm_bufmgr_deinit(bufmgr); -} - void BufmgrTest::SetUp() { ut_set_default_tbm_env(); diff --git a/utests/ut.h b/utests/ut.h index ac2fce6..24d9eb9 100644 --- a/utests/ut.h +++ b/utests/ut.h @@ -7,19 +7,6 @@ #include #include -/* The test fixture class, which deinitializes bufmgr after the test is finished. -To init bufmgr you need to call UtBufmgrInit() func. Do not call tbm_bufmgr_init() -directly because deinitialization won't be called if test is failed */ -class UtInit : public ::testing::Test -{ -protected: - void SetUp(); - void TearDown(); -public: - void UtBufmgrInit(); - tbm_bufmgr bufmgr; -}; - /* The test fixture class, which initializes the bufmgr before and deinitializes * after the tests which use the test fixture with this class */ class BufmgrTest : public ::testing::Test -- 2.7.4