43 {
45 return;
46 }
47
49
50
51
52
55#if FML_OS_LINUX
58#endif
59 } else {
61 std::vector<std::unique_ptr<const fml::Mapping>> kernel_mappings;
62 auto kernel_mapping =
64 if (!kernel_mapping || !kernel_mapping->IsValid()) {
65 FML_LOG(
ERROR) <<
"Could not find kernel blob for test fixture not "
66 "running in precompiled mode.";
67 return kernel_mappings;
68 }
69 kernel_mappings.emplace_back(std::move(kernel_mapping));
70 return kernel_mappings;
71 };
72 }
73}
static bool IsRunningPrecompiledCode()
Checks if VM instances in the process can run precompiled code. This call can be made at any time and...
static std::unique_ptr< FileMapping > CreateReadOnly(const std::string &path)
#define FML_LOG(severity)
#define FML_CHECK(condition)
bool PrepareSettingsForAOTWithSymbols(Settings &settings, const ELFAOTSymbols &symbols)
Prepare the settings objects various AOT mappings resolvers with the symbols already loaded....
const char * GetTestingAssetsPath()
Returns the directory containing assets shared across all tests.
std::vector< std::unique_ptr< const fml::Mapping > > Mappings
std::string JoinPaths(std::initializer_list< std::string > components)