diff options
Diffstat (limited to 'modules/remote/tests/remote_loopback.cpp')
-rw-r--r-- | modules/remote/tests/remote_loopback.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/remote/tests/remote_loopback.cpp b/modules/remote/tests/remote_loopback.cpp index 2895ee7..e78f646 100644 --- a/modules/remote/tests/remote_loopback.cpp +++ b/modules/remote/tests/remote_loopback.cpp @@ -69,5 +69,18 @@ SAW_TEST("Remote Loopback Data"){ auto eov = conv.take(); SAW_EXPECT(!eov.is_value(), "Failed receive. Value should already be erased."); } + + id<sch::UInt64> alloc_id = [&](){ + auto eov = client.allocate<sch::UInt64>(data<sch::Void>{}); + SAW_EXPECT(eov.is_value(), "Failed send."); + return eov.get_value(); + }(); + { + auto eov = client.find(alloc_id); + SAW_EXPECT(eov.is_value(), "Failed find."); + auto& f_val = eov.get_value(); + SAW_EXPECT(f_val, "Nullptr in find."); + f_val->set(5u); + } } } |