Call SetShmBase() in init_rs
The ShmEventLoop rust test was using /dev/shm/aos and breaking out of
the sandbox. Fix that.
Change-Id: I14db8b500a03a66fef41399c4cea334ff79b217f
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/BUILD b/aos/BUILD
index 34af003..f1cb6ba 100644
--- a/aos/BUILD
+++ b/aos/BUILD
@@ -198,6 +198,25 @@
visibility = ["//visibility:public"],
)
+autocxx_library(
+ name = "test_init_rs",
+ testonly = True,
+ srcs = ["test_init.rs"],
+ crate_name = "aos_test_init",
+ libs = [
+ "//aos/testing:tmpdir",
+ ],
+ override_cc_toolchain = "@llvm_toolchain//:cc-clang-x86_64-linux",
+ target_compatible_with = select({
+ "//conditions:default": ["//tools/platforms/rust:has_support"],
+ "//tools:has_msan": ["@platforms//:incompatible"],
+ }),
+ visibility = ["//visibility:public"],
+ deps = [
+ ":init_rs",
+ ],
+)
+
cc_library(
name = "realtime",
srcs = [