Changeset 3bacee1 in mainline for uspace/lib/pcut/tests/timeout.c
- Timestamp:
- 2018-04-12T16:27:17Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3cf22f9
- Parents:
- 76d0981d
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcut/tests/timeout.c
r76d0981d r3bacee1 43 43 #include "tested.h" 44 44 45 static void my_sleep(int sec) { 45 static void my_sleep(int sec) 46 { 46 47 #ifdef __helenos__ 47 48 thread_sleep(sec); … … 58 59 PCUT_INIT; 59 60 60 PCUT_TEST(shall_time_out) { 61 PCUT_TEST(shall_time_out) 62 { 61 63 printf("Text before sleeping.\n"); 62 64 my_sleep(PCUT_DEFAULT_TEST_TIMEOUT * 5); … … 65 67 66 68 PCUT_TEST(custom_time_out, 67 PCUT_TEST_SET_TIMEOUT(PCUT_DEFAULT_TEST_TIMEOUT * 3)) { 69 PCUT_TEST_SET_TIMEOUT(PCUT_DEFAULT_TEST_TIMEOUT * 3)) 70 { 68 71 printf("Text before sleeping.\n"); 69 72 my_sleep(PCUT_DEFAULT_TEST_TIMEOUT * 2);
Note:
See TracChangeset
for help on using the changeset viewer.