summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLassi Marttala <lassi.lm.marttala@partner.bmw.com>2012-03-14 15:55:51 +0100
committerChristian Muck <christian.muck@bmw.de>2012-03-21 15:13:41 +0100
commit1e40f5848d5776d7cac298b3fec25206d713ad72 (patch)
tree9f4a3fd2452cbd7b39d1cde16481d54ea997b3c8 /src
parent5b6522ad518a6e565f3505b9b3f6ef7580754968 (diff)
downloadDLT-daemon-1e40f5848d5776d7cac298b3fec25206d713ad72.tar.gz
GDLT-64, check that the messages in tests 6m and 6f are actually
messages intended to be received here. Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tests/dlt-test-client.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/tests/dlt-test-client.c b/src/tests/dlt-test-client.c
index 180badf..cb4a372 100755
--- a/src/tests/dlt-test-client.c
+++ b/src/tests/dlt-test-client.c
@@ -1095,7 +1095,16 @@ int dlt_testclient_message_callback(DltMessage *message, void *data)
}
else if (dltdata->running_test==6)
{
- dltdata->test_counter_macro[5]++;
+ if (strcmp(text,"Message (visible: locally printed)")==0)
+ {
+ printf("Message (visible: locally printed)\n");
+ dltdata->test_counter_macro[5]++;
+ }
+ if (strcmp(text,"Message (invisible: not locally printed)")==0)
+ {
+ printf("Message (invisible: not locally printed)\n");
+ dltdata->test_counter_macro[5]++;
+ }
}
/* check test 7m */
@@ -1855,7 +1864,16 @@ int dlt_testclient_message_callback(DltMessage *message, void *data)
}
else if (dltdata->running_test==13)
{
- dltdata->test_counter_function[5]++;
+ if (strcmp(text,"Message (visible: locally printed)")==0)
+ {
+ printf("Message (visible: locally printed)\n");
+ dltdata->test_counter_function[5]++;
+ }
+ if (strcmp(text,"Message (invisible: not locally printed)")==0)
+ {
+ printf("Message (invisible: not locally printed)\n");
+ dltdata->test_counter_function[5]++;
+ }
}
/* check test 7f */