summaryrefslogtreecommitdiff
path: root/modules/remote/tests
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-07-21 22:42:22 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-07-21 22:42:22 +0200
commite5bf2f231e5ebaa13baf0742149d71fc8777e823 (patch)
tree24a7fd45869b86358c9424c438889e7c98e4a203 /modules/remote/tests
parent498acb5ee9db90aaf01049ae44e098169219398d (diff)
Added preallocation to remote
Diffstat (limited to 'modules/remote/tests')
-rw-r--r--modules/remote/tests/remote_loopback.cpp13
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);
+ }
}
}