blob: a8380e2d71b6e2198b2f4e8cd1df383417ff5052 [file] [log] [blame]
use aos_init::init;
autocxx::include_cpp! (
#include "aos/testing/tmpdir.h"
safety!(unsafe)
generate!("aos::testing::SetTestShmBase")
);
// TODO(Brian): Should we provide a proc macro attribute that handles calling this?
/// Initializes things for a test.
///
/// # Panics
///
/// Panics if non-test initialization has already been performed.
pub fn test_init() {
init();
ffi::aos::testing::SetTestShmBase();
// TODO(Brian): Do we want any of the other stuff that `:gtest_main` has?
}