From aa9865f9781a58e09c28b9e48ca6332f207e15f5 Mon Sep 17 00:00:00 2001 From: Christian Muck Date: Thu, 22 Mar 2012 08:33:17 +0100 Subject: Modified library for new test cases to corrupt data - related to the bug fix for testing signed and unsigned integer Signed-off-by: Christian Muck --- include/dlt/dlt_user.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/dlt') diff --git a/include/dlt/dlt_user.h b/include/dlt/dlt_user.h index edfeef2..b6f2e39 100755 --- a/include/dlt/dlt_user.h +++ b/include/dlt/dlt_user.h @@ -246,6 +246,11 @@ typedef struct #ifdef DLT_SHM_ENABLE DltShm dlt_shm; #endif +#ifdef DLT_TEST_ENABLE + int corrupt_user_header; + int corrupt_message_size; + int16_t corrupt_message_size_size; +#endif } DltUser; /************************************************************************************************** @@ -604,6 +609,11 @@ int dlt_user_check_buffer(int *total_size, int *used_size); */ int dlt_user_atexit_blow_out_user_buffer(void); +#ifdef DLT_TEST_ENABLE +void dlt_user_test_corrupt_user_header(int enable); +void dlt_user_test_corrupt_message_size(int enable,int16_t size); +#endif /* DLT_TEST_ENABLE */ + #ifdef __cplusplus } #endif -- cgit v1.2.1