summaryrefslogtreecommitdiff
path: root/tests/gtest_dlt_common.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Code beautification using uncrustifyChristoph Lipka2018-12-211-1689/+1995
| | | | Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
* UnitTest: UpdatesManikandanC2018-12-211-23/+10
| | | | | | | | | | | | Gateway Logstorage Event Handler Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com> Signed-off-by: S. Hameed <shameed@jp.adit-jv.com> Signed-off-by: Aditya Paluri <venkataaditya.paluri@in.bosch.com> Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com> Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
* minor compiler warning gcc 7.x (#30)Phong Tran2018-03-291-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix -Wpointer-compare of compare with null char Signed-off-by: Phong Tran <tranmanphong@gmail.com> * dlt_common: fix -Wformat-truncation of snprintf Avoid snprintf output truncation by handling return value Signed-off-by: Phong Tran <tranmanphong@gmail.com> * dlt_offline_trace: Fix Wformat-truncation of snprintf Compile with Gcc 7.x has the warning of snprintf buffer length size. Check return value of snprintf() for avoiding the warning. Signed-off-by: Phong Tran <tranmanphong@gmail.com> * dlt_common_test: Fix memleak t_dlt_message_read some resources were not free after using. Detected by running valgrind --leak-check=full ./gtest_dlt_common Signed-off-by: Phong Tran <tranmanphong@gmail.com>
* Purged all warnings for -Wall -WextraLutz Helwing2015-10-281-59/+149
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* DLT daemon improvement - dlt_init()-checkLutz Helwing2015-10-071-1268/+1267
| | | | | | | | | | DLT daemon improvement - parameter value range check Adapt unit tests to check for enum return values Changed C version to gnu99 and C++ version to gnu++0c Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Fixed whitespace and formatting of new code Fixed licence headersLutz Helwing2015-10-071-2/+0
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Cleanup masterStefan Vacek2015-10-071-12/+12
| | | | | | | - remove compiler warnings - fix file permissions Signed-off-by: Stefan Vacek <stefan.vacek@intel.com>
* Rework of unit testsStefan Held2015-07-211-459/+342
| | | | | Signed-off-by: Stefan Held <stefan_held@mentor.com> Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Added licence and Doxygen headersLutz Helwing2015-07-211-0/+27
| | | | Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* Rework of unit tests in gtest_dlt_commonStefan Held2015-07-211-226/+377
| | | | | | | Fix all nullpointer errors in dlt_common.c Signed-off-by: Stefan Held <stefan_held@mentor.com> Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* rework v2 of all unit tests added dlt_daemon_application* unit tests added ↵Stefan Held2015-06-171-1084/+1069
| | | | | | | | | | dlt_daemon_context* unit tests added dlt_daemon_user_send* unit tests comment out all unit tests who fail the test for further bugfixing Signed-off-by: Stefan Held <stefan_held@mentor.com> Conflicts: tests/CMakeLists.txt Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* added the following unit tests for dlt_common.cStefan Held2015-06-171-21/+428
| | | | | | | | | | | | | | | dlt_uptime dlt_set_id dlt_print_char_string dlt_print_hex_string dlt_print_mixed_string dlt_print_id dlt_get_version dlt_get_major_version dlt_get_minor_version Signed-off-by: Stefan Held <stefan_held@mentor.com> Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* added dlt_log_* unit tests rework of dlt_buffer_* and dlt_messages_* unit testsStefan Held2015-06-171-696/+1071
| | | | | Signed-off-by: Stefan Held <stefan_held@mentor.com> Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
* 1st version of gtest now the following methods can be tested dlt_common -> ↵Stefan Held2015-06-171-0/+2938
dlt_buffer_* dlt_common -> dlt_message_* Signed-off-by: Stefan Held <stefan_held@mentor.com> Conflicts: tests/CMakeLists.txt Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>