summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-09-22 15:23:03 +0200
committerAlexander Wenzel <Alexander.AW.Wenzel@bmw.de>2011-09-22 15:23:03 +0200
commitad16ddcf08343ca4f8a75478476148a9b5af3be2 (patch)
treeac782f7d0850e077229f54b53472e1a302d0591a /src
parent11502093cffb3d1ae0400802f6a9b7c686eeaedb (diff)
downloadDLT-daemon-ad16ddcf08343ca4f8a75478476148a9b5af3be2.tar.gz
Changed maximum thread number of test 2 to 64. Changed timeout of test 3 to 10ms.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/tests/dlt-test-stress.c9
1 files changed, 3 insertions, 6 deletions
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");