Document incoming BLE tuning and refine cancellation test

This commit is contained in:
evgeny committed 2026-10-30 23:05:52 +01:00
1 parent 2902602d7f
commit ca2bebcbd3
2 files changed
+17 -8

No files matched your search

+4 -3
View File
@@ -104,9 +104,10 @@ static void incoming_speed(UASYNC* ua) {
s->close(7); CHECK(speed->cancelled == 1);
speed->finish(AsyncStatus::Completed); uasync_poll(ua, 0);
CHECK(device->closed == 1 && !s->link(7) && s->link(9) && !s->failed && !owner.link_failures);
s->tune_incoming(*s->link(9), speed.as<IAsyncOperation<BluetoothLEDevice>>());
s->shutdown(); CHECK(speed->cancelled == 2);
speed->finish(AsyncStatus::Canceled); uasync_poll(ua, 0);
auto pending = make_self<TestSpeedOperation>();
s->tune_incoming(*s->link(9), pending.as<IAsyncOperation<BluetoothLEDevice>>());
s->shutdown(); CHECK(pending->cancelled == 1);
pending->finish(AsyncStatus::Canceled); uasync_poll(ua, 0);
CHECK(s->events.empty() && !s->posted && !owner.radio_failures && !owner.link_failures);
DEBUG_INFO(CAT, "WinRT test PASS: incoming speed preserves DATA on success/failure, closes device and cancels late/shutdown work");
}