diff options
author | Christian Muck <christian.muck@bmw.de> | 2012-03-22 08:33:17 +0100 |
---|---|---|
committer | Christian Muck <christian.muck@bmw.de> | 2012-03-22 08:33:17 +0100 |
commit | aa9865f9781a58e09c28b9e48ca6332f207e15f5 (patch) | |
tree | 9bafb5bdef33467bf2fe79d19c5aef3d34207d91 /include/dlt | |
parent | 76002524fc3d0e5ef12e8e2dfdc27868193c0609 (diff) | |
download | DLT-daemon-aa9865f9781a58e09c28b9e48ca6332f207e15f5.tar.gz |
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 <christian.muck@bmw.de>
Diffstat (limited to 'include/dlt')
-rwxr-xr-x | include/dlt/dlt_user.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 |