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 @@ -118,7 +118,7 @@ jobs:
118118 # bit unstable as the async foundations are shifting over time but this at
119119 # least enables testing async things in this repository more easily.
120120 async :
121- name : Test Async
121+ name : Test Async (allowed to fail)
122122 runs-on : ubuntu-latest
123123 steps :
124124 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ int main() {
2727 test_future_u32_t data_reader = test_future_u32_new (& data_writer );
2828 test_future_void_writer_t signal_writer ;
2929 test_future_void_t signal_reader = test_future_void_new (& signal_writer );
30- test_async_start_read_then_cancel_args_t args ;
31- args .data = data_reader ;
32- args .signal = signal_reader ;
33- runner_subtask_status_t status = test_async_start_read_then_cancel (& args );
30+ runner_subtask_status_t status = test_async_start_read_then_cancel (data_reader , signal_reader );
3431 assert (RUNNER_SUBTASK_STATE (status ) == RUNNER_SUBTASK_STARTED );
3532 runner_subtask_t task = RUNNER_SUBTASK_HANDLE (status );
3633
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ int main() {
4343 runner_waitable_set_wait (set , & event );
4444 assert (event .event == RUNNER_EVENT_STREAM_WRITE );
4545 assert (event .waitable == writer );
46- assert (RUNNER_WAITABLE_STATE (event .code ) == RUNNER_WAITABLE_COMPLETED );
46+ assert (RUNNER_WAITABLE_STATE (event .code ) == RUNNER_WAITABLE_CLOSED );
4747 assert (RUNNER_WAITABLE_COUNT (event .code ) == 2 );
4848
4949 // clean up the writer
You can’t perform that action at this time.
0 commit comments