Commit 4017dd278d2396f7b33ae48bb2cc965a862bc2f9

Authored by Perry Werneck
2 parents fa9d0adc 0612eb2c

Merge branch 'develop' into network_module

Showing 1 changed file with 6 additions and 3 deletions   Show diff stats
src/testprogram/testprogram.c
@@ -172,10 +172,13 @@ int main(int argc, char *argv[]) @@ -172,10 +172,13 @@ int main(int argc, char *argv[])
172 if(!rc) 172 if(!rc)
173 { 173 {
174 174
175 - printf("\n\nWaiting starts %u\n",(unsigned int) time(NULL)); 175 + lib3270_wait_for_ready(h,10);
176 176
  177 + /*
177 { 178 {
178 // Performance checks 179 // Performance checks
  180 + printf("\n\nWaiting starts %u\n",(unsigned int) time(NULL));
  181 +
179 size_t f; 182 size_t f;
180 time_t start = time(0); 183 time_t start = time(0);
181 for(f=0;f < 1000; f++) { 184 for(f=0;f < 1000; f++) {
@@ -188,10 +191,10 @@ int main(int argc, char *argv[]) @@ -188,10 +191,10 @@ int main(int argc, char *argv[])
188 if(tm > 1) { 191 if(tm > 1) {
189 exit(-1); 192 exit(-1);
190 } 193 }
  194 + printf("\n\nWaiting ends %u\n\n",(unsigned int) time(NULL));
191 195
192 } 196 }
193 -  
194 - printf("\n\nWaiting ends %u\n\n",(unsigned int) time(NULL)); 197 + */
195 198
196 lib3270_enter(h); 199 lib3270_enter(h);
197 lib3270_wait(h,5); 200 lib3270_wait(h,5);