Changeset 55:fa05d8dd30a2 in xplra for test/basicctest.c
- Timestamp:
- 02/16/13 18:14:55 (11 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 3 'hg:/home/ivaradi/xplane/hg/xplra' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/basicctest.c
r40 r55 43 43 44 44 #ifdef _WIN32 45 void _sleep(int ms)45 void xplra_sleep(int ms) 46 46 { 47 47 Sleep(ms); 48 48 } 49 49 #else 50 void _sleep(int ms)50 void xplra_sleep(int ms) 51 51 { 52 52 usleep(ms*1000); … … 367 367 368 368 printf("Preparing for the message tests, sleeping for 5 seconds...\n"); 369 _sleep(5*1000);369 xplra_sleep(5*1000); 370 370 371 371 printf("Showing a message for 10 seconds...\n"); … … 375 375 376 376 printf("Sleeping for 3 seconds...\n"); 377 _sleep(3*1000);377 xplra_sleep(3*1000); 378 378 379 379 printf("Showing another message interrupting the previous one for 3 seconds"); … … 383 383 384 384 printf("Sleeping for 5 seconds...\n"); 385 _sleep(5*1000);385 xplra_sleep(5*1000); 386 386 if (xplra_show_message(connectionID, "[basictest] and the tests come to an end!", 5.0)<0) { 387 387 goto error; … … 389 389 390 390 goto cleanup; 391 391 392 error: 392 393 errorString = xplra_get_last_error_string(connectionID);
Note:
See TracChangeset
for help on using the changeset viewer.