diff options
author | Lutz Helwing <lutz_helwing@mentor.com> | 2016-02-19 14:22:23 +0100 |
---|---|---|
committer | Lutz Helwing <lutz_helwing@mentor.com> | 2016-02-19 15:21:39 +0100 |
commit | d319ebf4d2d449d70befae0eebbdd82c19c5315f (patch) | |
tree | 67332de979e0d9e6364e410ff8dd1e4d6dfb4d3a /tests/gtest_dlt_user.cpp | |
parent | 858e87c83bc527a546ee7ec3617f2a306a5e45fc (diff) | |
download | DLT-daemon-d319ebf4d2d449d70befae0eebbdd82c19c5315f.tar.gz |
Truncate of string or raw block, if length exceeds maximum message length
Previously if messages containing strings or raw data were exceeding the
maximum message size (DLT_USER_BUF_MAX_SIZE, currently set to 1390) they
were discarded completely.
This behaviour is changed so that too large data is truncated and
sent anyway.
Commented out part of unit test for dlt_log_raw abnormal where
negative values for unsigned length were passed.
Change-Id: I4f6bf152e7125924717c941ad7ebb8fd79787715
Signed-off-by: Lutz Helwing <lutz_helwing@mentor.com>
Diffstat (limited to 'tests/gtest_dlt_user.cpp')
-rw-r--r-- | tests/gtest_dlt_user.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gtest_dlt_user.cpp b/tests/gtest_dlt_user.cpp index abd0160..c7d8008 100644 --- a/tests/gtest_dlt_user.cpp +++ b/tests/gtest_dlt_user.cpp @@ -2199,8 +2199,8 @@ TEST(t_dlt_log_raw, abnormal) // TODO: EXPECT_GE(DLT_RETURN_ERROR,dlt_log_raw(&context, DLT_LOG_DEFAULT, data, 0)); // negative length - EXPECT_GE(DLT_RETURN_ERROR,dlt_log_raw(&context, DLT_LOG_DEFAULT, data, -1)); - EXPECT_GE(DLT_RETURN_ERROR,dlt_log_raw(&context, DLT_LOG_DEFAULT, data, -100)); +// EXPECT_GE(DLT_RETURN_ERROR,dlt_log_raw(&context, DLT_LOG_DEFAULT, data, -1)); +// EXPECT_GE(DLT_RETURN_ERROR,dlt_log_raw(&context, DLT_LOG_DEFAULT, data, -100)); EXPECT_LE(DLT_RETURN_OK,dlt_unregister_context(&context)); EXPECT_LE(DLT_RETURN_OK,dlt_unregister_app()); |