diff options
author | Andrei Rusu <andrew_x_2005@yahoo.com> | 2021-12-21 03:53:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-21 10:53:31 +0900 |
commit | fec4393aeca0e13476c01bf41256bae7fe2bb617 (patch) | |
tree | 9fdd61a9df4eb73789b3dd2ecb52b0370ff4a3ef /src/tests/dlt-test-client.c | |
parent | dc05f7577103ac06d211c3325ae6f6209d6d69e9 (diff) | |
download | DLT-daemon-fec4393aeca0e13476c01bf41256bae7fe2bb617.tar.gz |
Fix DLT User/Client tests (#357)
- Fix DLT Test Client expected string in Test 5 (for Better formatting of RAWD #291)
- Fix DLT Test User Disable Macro usage: #cmakedefine01 DLT_DISABLE_MACRO (from dlt_user.h.in) still defines the macro even though DLT_DISABLE_MACRO is not set inside CMake.
Signed-off-by: Andrei-Mircea Rusu <andrei-mircea.rusu@continental-corporation.com>
Diffstat (limited to 'src/tests/dlt-test-client.c')
-rw-r--r-- | src/tests/dlt-test-client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/dlt-test-client.c b/src/tests/dlt-test-client.c index 092b8f2..ad5eee9 100644 --- a/src/tests/dlt-test-client.c +++ b/src/tests/dlt-test-client.c @@ -1030,7 +1030,7 @@ int dlt_testclient_message_callback(DltMessage *message, void *data) if (strcmp(text, "Next line: DLT_LOG_RAW") == 0) dltdata->test_counter_macro[4]++; - if (strcmp(text, "00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f") == 0) + if (strcmp(text, "00\'01\'02\'03\'04\'05\'06\'07\'08\'09\'0a\'0b\'0c\'0d\'0e\'0f") == 0) dltdata->test_counter_macro[4]++; if (strcmp(text, "Next line: DLT_LOG_STRING_INT") == 0) @@ -2053,7 +2053,7 @@ int dlt_testclient_message_callback(DltMessage *message, void *data) if (strcmp(text, "Next line: dlt_log_raw()") == 0) dltdata->test_counter_function[4]++; - if (strcmp(text, "00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f") == 0) + if (strcmp(text, "00\'01\'02\'03\'04\'05\'06\'07\'08\'09\'0a\'0b\'0c\'0d\'0e\'0f") == 0) dltdata->test_counter_function[4]++; if (strcmp(text, "Next line: dlt_log_string_int()") == 0) |