Skip to content

Commit 667e999

Browse files
AdamZvarasedmicha
authored andcommitted
Tests: unify usage of Message Generator
1 parent a8fa3de commit 667e999

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/unit/core/parser/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Add header files of the IPFIX Message generator
2-
include_directories(tools)
2+
include_directories(../../tools)
33

44
set(AUX_TOOLS
5-
"tools/MsgGen.cpp"
6-
"tools/MsgGen.h"
5+
"../../tools/MsgGen.cpp"
6+
"../../tools/MsgGen.h"
77
)
88

99
# Copy auxiliary files for tests

tests/unit/core/parser/parser_common.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class Common : public ::testing::TestWithParam<enum fds_session_type> {
8686
};
8787

8888
// Define parameters of parametrized test
89-
INSTANTIATE_TEST_CASE_P(Parser, Common, ::testing::Values(FDS_SESSION_UDP,
89+
INSTANTIATE_TEST_SUITE_P(Parser, Common, ::testing::Values(FDS_SESSION_UDP,
9090
FDS_SESSION_TCP, FDS_SESSION_SCTP, FDS_SESSION_FILE));
9191

9292
// Just create and destroy parser
@@ -147,7 +147,7 @@ TEST_P(Common, simple)
147147
ipx_msg_garbage *garbage;
148148
ASSERT_EQ(ipx_parser_process(parser, &ipfix_msg, &garbage), IPX_OK);
149149

150-
EXPECT_EQ(ipx_msg_ipfix_get_drec_cnt(ipfix_msg), 1);
150+
EXPECT_EQ(ipx_msg_ipfix_get_drec_cnt(ipfix_msg), 1u);
151151
ipx_ipfix_record *rec = ipx_msg_ipfix_get_drec(ipfix_msg, 0);
152152
ASSERT_NE(rec, nullptr);
153153

0 commit comments

Comments
 (0)