Mercurial > hg > freeDiameter
comparison freeDiameter/tests/testfifo.c @ 494:6e9c1ea44262
Increase timer for the test
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Mon, 16 Aug 2010 11:43:55 +0900 |
parents | c5c99c73c2bf |
children | 8abafd66a617 |
comparison
equal
deleted
inserted
replaced
490:2577514b2546 | 494:6e9c1ea44262 |
---|---|
209 /* Create the barrier */ | 209 /* Create the barrier */ |
210 CHECK( 0, pthread_barrier_init(&bar, NULL, NBR_THREADS * 2 + 1) ); | 210 CHECK( 0, pthread_barrier_init(&bar, NULL, NBR_THREADS * 2 + 1) ); |
211 | 211 |
212 /* Initialize the ts */ | 212 /* Initialize the ts */ |
213 CHECK(0, clock_gettime(CLOCK_REALTIME, &ts)); | 213 CHECK(0, clock_gettime(CLOCK_REALTIME, &ts)); |
214 ts.tv_sec += 2; /* Set the timeout to 2 second */ | 214 ts.tv_sec += 20; /* Set the timeout to 20 second */ |
215 | 215 |
216 /* Create the messages */ | 216 /* Create the messages */ |
217 CHECK( 0, fd_dict_search ( fd_g_config->cnf_dict, DICT_COMMAND, CMD_BY_NAME, "Device-Watchdog-Request", &dwr_model, ENOENT ) ); | 217 CHECK( 0, fd_dict_search ( fd_g_config->cnf_dict, DICT_COMMAND, CMD_BY_NAME, "Device-Watchdog-Request", &dwr_model, ENOENT ) ); |
218 for (i = 0; i < NBR_MSG * NBR_THREADS * 2; i++) { | 218 for (i = 0; i < NBR_MSG * NBR_THREADS * 2; i++) { |
219 CHECK( 0, fd_msg_new ( dwr_model, 0, &msgs[i] ) ); | 219 CHECK( 0, fd_msg_new ( dwr_model, 0, &msgs[i] ) ); |
279 /* Create the barrier */ | 279 /* Create the barrier */ |
280 CHECK( 0, pthread_barrier_init(&bar, NULL, 2) ); | 280 CHECK( 0, pthread_barrier_init(&bar, NULL, 2) ); |
281 | 281 |
282 /* Initialize the ts */ | 282 /* Initialize the ts */ |
283 CHECK(0, clock_gettime(CLOCK_REALTIME, &ts)); | 283 CHECK(0, clock_gettime(CLOCK_REALTIME, &ts)); |
284 ts.tv_sec += 2; /* Set the timeout to 2 second */ | 284 ts.tv_sec += 10; /* Set the timeout to 10 second */ |
285 | 285 |
286 /* Initialize the test data structures */ | 286 /* Initialize the test data structures */ |
287 td.queue = queue; | 287 td.queue = queue; |
288 td.bar = &bar; | 288 td.bar = &bar; |
289 td.ts = &ts; | 289 td.ts = &ts; |