Skip to content

Commit

Permalink
#872: fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Strzebonski committed Oct 30, 2020
1 parent b3ff5f6 commit aa71db9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/unit/handler/test_handler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,16 @@ TEST_F(TestHandler, test_make_handler_default_params) {
// Default parameters' values
constexpr bool is_objgroup = false;
constexpr HandlerControlType control = 0;
constexpr bool is_trace = true;
constexpr bool is_member = false;

EXPECT_EQ(is_objgroup, HandlerManager::isHandlerObjGroup(han));
EXPECT_EQ(control, HandlerManager::getHandlerControl(han));
EXPECT_EQ(is_trace, HandlerManager::isHandlerTrace(han));
EXPECT_EQ(is_member, HandlerManager::isHandlerMember(han));

#if vt_check_enabled(trace_enabled)
constexpr bool is_trace = true;
EXPECT_EQ(is_trace, HandlerManager::isHandlerTrace(han));
#endif
}

TEST_F(TestHandler, TestHandler_test_make_handler_custom_params) {
Expand All @@ -93,8 +96,11 @@ TEST_F(TestHandler, TestHandler_test_make_handler_custom_params) {
EXPECT_EQ(id, HandlerManager::getHandlerIdentifier(han));
EXPECT_EQ(is_objgroup, HandlerManager::isHandlerObjGroup(han));
EXPECT_EQ(control, HandlerManager::getHandlerControl(han));
EXPECT_EQ(is_trace, HandlerManager::isHandlerTrace(han));
EXPECT_EQ(is_member, HandlerManager::isHandlerMember(han));

#if vt_check_enabled(trace_enabled)
EXPECT_EQ(is_trace, HandlerManager::isHandlerTrace(han));
#endif
}

}}} // end namespace vt::tests::unit

0 comments on commit aa71db9

Please sign in to comment.