Changeset 55:fa05d8dd30a2 in xplra for test
- Timestamp:
- 02/16/13 18:14:55 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- test
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/Makefile.am
r54 r55 6 6 endif 7 7 8 noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest multisetctest hotkeytest 8 noinst_PROGRAMS=ctest basictest basicctest multigettest multigetctest multisettest multisetctest hotkeytest hotkeyctest 9 9 10 10 ctest_SOURCES=ctest.c … … 36 36 hotkeytest_SOURCES=hotkeytest.cc 37 37 38 hotkeyctest_SOURCES=hotkeyctest.c 39 if TARGET_API_WIN32 40 hotkeyctest_LDFLAGS=-lstdc++ 41 endif 42 38 43 EXTRA_DIST=\ 39 44 runpy.sh \ -
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.