Changeset b22b0a94 in mainline for uspace/app
- Timestamp:
- 2019-08-07T05:39:54Z (7 years ago)
- Children:
- b8341bc
- Parents:
- 5cd2290
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-10-19 21:34:52)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 05:39:54)
- Location:
- uspace/app/tester
- Files:
-
- 2 added
- 5 edited
-
Makefile (modified) (1 diff)
-
proc/common.h (modified) (1 diff)
-
proc/task_anywait.c (added)
-
proc/task_anywait.def (added)
-
proc/task_wait.c (modified) (1 diff)
-
tester.c (modified) (1 diff)
-
tester.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/Makefile
r5cd2290 rb22b0a94 68 68 chardev/chardev1.c \ 69 69 proc/dummy_task.c \ 70 proc/task_anywait.c \ 70 71 proc/task_wait.c 71 72 -
uspace/app/tester/proc/common.h
r5cd2290 rb22b0a94 44 44 #define STR_JOB_OK "job-ok" 45 45 46 #define DUMMY_TASK "/root/app/tester" 47 #define DUMMY_TASK_ARG "proc_dummy_task" 48 49 static inline int dummy_task_spawn(task_id_t *task_id, task_wait_t *wait, 50 const char *behavior) 51 { 52 return task_spawnl(task_id, wait, 53 DUMMY_TASK, DUMMY_TASK, DUMMY_TASK_ARG, behavior, 54 NULL); 55 } 56 46 57 #endif -
uspace/app/tester/proc/task_wait.c
r5cd2290 rb22b0a94 36 36 #include "common.h" 37 37 38 #define DUMMY_TASK "/root/app/tester"39 #define DUMMY_TASK_ARG "proc_dummy_task"40 41 #define S(x) #x42 #define S_(x) S(x)43 #define S__LINE__ S_(__LINE__)44 45 #define TASSERT(expr) \46 do { \47 if (!(expr)) \48 return "Failed " #expr " " __FILE__ ":" S__LINE__ ; \49 } while (0)50 51 static int dummy_task_spawn(task_id_t *task_id, task_wait_t *wait,52 const char *behavior)53 {54 return task_spawnl(task_id, wait,55 DUMMY_TASK, DUMMY_TASK, DUMMY_TASK_ARG, behavior,56 NULL);57 }58 38 59 39 const char *test_proc_task_wait(void) -
uspace/app/tester/tester.c
r5cd2290 rb22b0a94 79 79 #include "chardev/chardev1.def" 80 80 #include "proc/dummy_task.def" 81 #include "proc/task_anywait.def" 81 82 #include "proc/task_wait.def" 82 83 {NULL, NULL, NULL, false} -
uspace/app/tester/tester.h
r5cd2290 rb22b0a94 70 70 } while (0) 71 71 72 #define S(x) #x 73 #define S_(x) S(x) 74 #define S__LINE__ S_(__LINE__) 75 76 #define TASSERT(expr) \ 77 do { \ 78 if (!(expr)) \ 79 return "Failed " #expr " " __FILE__ ":" S__LINE__ ; \ 80 } while (0) 81 82 72 83 typedef const char *(*test_entry_t)(void); 73 84 … … 112 123 extern const char *test_chardev1(void); 113 124 extern const char *test_proc_dummy_task(void); 125 extern const char *test_proc_task_anywait(void); 114 126 extern const char *test_proc_task_wait(void); 115 127
Note:
See TracChangeset
for help on using the changeset viewer.
