diff options
author | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2011-09-22 15:23:03 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2011-09-22 15:23:03 +0200 |
commit | ad16ddcf08343ca4f8a75478476148a9b5af3be2 (patch) | |
tree | ac782f7d0850e077229f54b53472e1a302d0591a | |
parent | 11502093cffb3d1ae0400802f6a9b7c686eeaedb (diff) | |
download | DLT-daemon-ad16ddcf08343ca4f8a75478476148a9b5af3be2.tar.gz |
Changed maximum thread number of test 2 to 64. Changed timeout of test 3 to 10ms.
-rwxr-xr-x | include/dlt/dlt_version.h | 2 | ||||
-rwxr-xr-x | src/tests/dlt-test-stress.c | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/dlt/dlt_version.h b/include/dlt/dlt_version.h index cb783cd..2d3fbb7 100755 --- a/include/dlt/dlt_version.h +++ b/include/dlt/dlt_version.h @@ -7,6 +7,6 @@ #define PACKAGE_MAJOR_VERSION "2" #define PACKAGE_MINOR_VERSION "3" #define PACKAGE_PATCH_LEVEL "0" -#define PACKAGE_REVISION "v2.3.0-1-g3d66b53" +#define PACKAGE_REVISION "v2.3.0-RC-2-g1150209" #endif diff --git a/src/tests/dlt-test-stress.c b/src/tests/dlt-test-stress.c index ea17857..07b3ae9 100755 --- a/src/tests/dlt-test-stress.c +++ b/src/tests/dlt-test-stress.c @@ -98,7 +98,7 @@ typedef struct } thread_data_t; #define STRESS1_NUM_CONTEXTS 3000 -#define STRESS2_MAX_NUM_THREADS 256 +#define STRESS2_MAX_NUM_THREADS 64 #define STRESS3_MAX_NUM_MESSAGES 512 #define MAX_TESTS 3 @@ -319,10 +319,7 @@ void stress2(void) for (index=0;index<STRESS2_MAX_NUM_THREADS;index++) { - if (thread[index]!=0) - { - pthread_join(thread[index], NULL); - } + pthread_join(thread[index], NULL); } printf("Finished stress test2 \n\n"); @@ -366,7 +363,7 @@ void stress3(void) { buffer[num] = num; DLT_LOG(context_stress3,DLT_LOG_INFO,DLT_INT(num),DLT_RAW(buffer,num)); - usleep(1); + usleep(10000); } printf("Finished stress test3 \n\n"); |