File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
tests/runtime-async/async Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ jobs:
118
118
# bit unstable as the async foundations are shifting over time but this at
119
119
# least enables testing async things in this repository more easily.
120
120
async :
121
- name : Test Async
121
+ name : Test Async (allowed to fail)
122
122
runs-on : ubuntu-latest
123
123
steps :
124
124
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -27,10 +27,7 @@ int main() {
27
27
test_future_u32_t data_reader = test_future_u32_new (& data_writer );
28
28
test_future_void_writer_t signal_writer ;
29
29
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 );
34
31
assert (RUNNER_SUBTASK_STATE (status ) == RUNNER_SUBTASK_STARTED );
35
32
runner_subtask_t task = RUNNER_SUBTASK_HANDLE (status );
36
33
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ int main() {
43
43
runner_waitable_set_wait (set , & event );
44
44
assert (event .event == RUNNER_EVENT_STREAM_WRITE );
45
45
assert (event .waitable == writer );
46
- assert (RUNNER_WAITABLE_STATE (event .code ) == RUNNER_WAITABLE_COMPLETED );
46
+ assert (RUNNER_WAITABLE_STATE (event .code ) == RUNNER_WAITABLE_CLOSED );
47
47
assert (RUNNER_WAITABLE_COUNT (event .code ) == 2 );
48
48
49
49
// clean up the writer
You can’t perform that action at this time.
0 commit comments