Changeset 68ae40a in mainline for uspace/app/tester/proc/task_anywait.c
- Timestamp:
- 2019-08-07T09:58:57Z (5 years ago)
- Children:
- ed5367b
- Parents:
- ce08421
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-11-05 01:51:29)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-07 09:58:57)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/proc/task_anywait.c
rce08421 r68ae40a 39 39 static task_id_t task_id; 40 40 static task_exit_t last_texit; 41 static bool last_ has_retval;41 static bool last_flags; 42 42 static int last_retval; 43 43 static bool handler_hit; … … 64 64 } 65 65 66 last_ has_retval = flags & TASK_WAIT_RETVAL;67 if (last_ has_retval) {66 last_flags = flags; 67 if (last_flags & TASK_WAIT_RETVAL) { 68 68 last_retval = retval; 69 69 } … … 81 81 if (purge) { 82 82 last_texit = TASK_EXIT_RUNNING; 83 last_ has_retval = false;83 last_flags = 0; 84 84 last_retval = 255; 85 85 } … … 120 120 TASSERT(rc == EOK); 121 121 wait_for_handler(); 122 TASSERT(last_ has_retval == false);122 TASSERT(last_flags == (TASK_WAIT_EXIT)); 123 123 TASSERT(last_texit == TASK_EXIT_UNEXPECTED); 124 124 /* --- */ … … 130 130 TASSERT(rc == EOK); 131 131 wait_for_handler(); 132 TASSERT(last_ has_retval == true);132 TASSERT(last_flags == (TASK_WAIT_RETVAL)); 133 133 TASSERT(last_retval == EOK); 134 134 TASSERT(last_texit == TASK_EXIT_RUNNING); … … 137 137 task_kill(task_id); 138 138 wait_for_handler(); 139 TASSERT(last_flags == (TASK_WAIT_EXIT)); 139 140 TASSERT(last_texit == TASK_EXIT_UNEXPECTED); 140 141 /* --- */ … … 146 147 TASSERT(rc == EOK); 147 148 wait_for_handler(); /* job is notified in a single handler call */ 148 TASSERT(last_ has_retval == true);149 TASSERT(last_flags == (TASK_WAIT_RETVAL | TASK_WAIT_EXIT)); 149 150 TASSERT(last_retval == EOK); 150 151 TASSERT(last_texit == TASK_EXIT_NORMAL); … … 160 161 TASSERT(rc == EOK); 161 162 wait_for_handler(); 162 TASSERT(last_ has_retval == true);163 TASSERT(last_flags == (TASK_WAIT_RETVAL | TASK_WAIT_EXIT)); 163 164 TASSERT(last_retval == EOK); 164 165 TASSERT(last_texit == TASK_EXIT_NORMAL);
Note:
See TracChangeset
for help on using the changeset viewer.