File tree Expand file tree Collapse file tree
tests/runtime-async/async Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ int main() {
1010
1111 runner_subtask_status_t status = test_async_cancel_before_read (reader );
1212 assert (status == RUNNER_SUBTASK_RETURNED );
13+ uint32_t value = 0 ;
14+ runner_waitable_status_t wstatus = test_future_u32_write (writer , & value );
15+ assert (RUNNER_WAITABLE_STATE (wstatus ) == RUNNER_WAITABLE_CLOSED );
16+ assert (RUNNER_WAITABLE_COUNT (wstatus ) == 0 );
1317 test_future_u32_close_writable (writer );
1418 }
1519
@@ -19,6 +23,11 @@ int main() {
1923
2024 runner_subtask_status_t status = test_async_cancel_after_read (reader );
2125 assert (status == RUNNER_SUBTASK_RETURNED );
26+
27+ uint32_t value = 0 ;
28+ runner_waitable_status_t wstatus = test_future_u32_write (writer , & value );
29+ assert (RUNNER_WAITABLE_STATE (wstatus ) == RUNNER_WAITABLE_CLOSED );
30+ assert (RUNNER_WAITABLE_COUNT (wstatus ) == 0 );
2231 test_future_u32_close_writable (writer );
2332 }
2433
Original file line number Diff line number Diff line change @@ -38,8 +38,12 @@ int main() {
3838 assert (RUNNER_WAITABLE_STATE (status ) == RUNNER_WAITABLE_CANCELLED );
3939 assert (RUNNER_WAITABLE_COUNT (status ) == 0 );
4040
41- test_future_string_close_writable (writer );
4241 test_future_string_close_readable (reader );
42+
43+ status = test_future_string_write (writer , & string );
44+ assert (RUNNER_WAITABLE_STATE (status ) == RUNNER_WAITABLE_CLOSED );
45+ assert (RUNNER_WAITABLE_COUNT (status ) == 0 );
46+ test_future_string_close_writable (writer );
4347 }
4448
4549 {
You can’t perform that action at this time.
0 commit comments