diff options
Diffstat (limited to 'tests/test_logic.cpp')
-rw-r--r-- | tests/test_logic.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_logic.cpp b/tests/test_logic.cpp index 589442a..8b32d7b 100644 --- a/tests/test_logic.cpp +++ b/tests/test_logic.cpp @@ -16,6 +16,7 @@ /* * @file test_logic.cpp * @author Janusz Kozerski (j.kozerski@samsung.com) + * @author Sangwan Kwon (sangwan.kwon@samsung.com) * @version 1.0 * @brief Tests of Logic class */ @@ -440,4 +441,20 @@ BOOST_AUTO_TEST_CASE(logic_workflow_OCSP_APP_REVOKED_2) { buff = get_buffer_(); BOOST_CHECK_MESSAGE(buff == apps, log_apps(apps, buff)); } + +BOOST_AUTO_TEST_CASE(logic_workflow_timer) { + + // Wait for setup. + BOOST_REQUIRE(setup() == NO_ERROR); + wait_for_worker(); + + // Job() will run. Install process. + timerStart(1); + wait_for_worker(5); + timerStop(); + + // If Timer is not work, wait_for_worker throw exception. + BOOST_REQUIRE(true); +} + BOOST_AUTO_TEST_SUITE_END() |