diff options
author | Lutz Helwing <lutz_helwing@mentor.com> | 2015-07-15 14:14:19 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2015-10-07 10:40:33 +0200 |
commit | 1236195e9b93aeb6bfa625956fa027f96003756d (patch) | |
tree | 07b08c892a486f9f97c1674e0d253099eb3388f3 /src/tests/dlt-test-stress.c | |
parent | 033a69218af3490f6be409f66f350c1568655f61 (diff) | |
download | DLT-daemon-1236195e9b93aeb6bfa625956fa027f96003756d.tar.gz |
DLT daemon improvement - dlt_init()-check
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>
Diffstat (limited to 'src/tests/dlt-test-stress.c')
-rw-r--r-- | src/tests/dlt-test-stress.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/dlt-test-stress.c b/src/tests/dlt-test-stress.c index 59e11f7..14067f1 100644 --- a/src/tests/dlt-test-stress.c +++ b/src/tests/dlt-test-stress.c @@ -221,15 +221,15 @@ int main(int argc, char* argv[]) if (test[0]) { - stress1(); + stress1(); } if (test[1]) { - stress2(); + stress2(); } if (test[2]) { - stress3(); + stress3(); } DLT_UNREGISTER_APP(); @@ -301,7 +301,7 @@ void stress2(void) ret=pthread_create(&(thread[index]), NULL, (void *) &thread_function, (void *) &(thread_data[index])); if (ret!=0) { - printf("Error creating thread %d: %s \n", index, strerror(errno)); + printf("Error creating thread %d: %s \n", index, strerror(errno)); } usleep(1000); @@ -309,7 +309,7 @@ void stress2(void) for (index=0;index<STRESS2_MAX_NUM_THREADS;index++) { - pthread_join(thread[index], NULL); + pthread_join(thread[index], NULL); } printf("Finished stress test2 \n\n"); |