MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / main

Function main

loader/tests/src/test_platform.cpp:313–331  ·  view source on GitHub ↗

<!-- description --> @brief Main function for this unit test. If a call to bsl::ut_check() fails the application will fast fail. If all calls to bsl::ut_check() pass, this function will successfully return with bsl::exit_success. <!-- inputs/outputs --> @return Always returns bsl::exit_success.

Source from the content-addressed store, hash-verified

311/// @return Always returns bsl::exit_success.
312///
313[[nodiscard]] auto
314main() noexcept -> bsl::exit_code
315{
316 platform_expects(1);
317 platform_ensures(1);
318
319 platform_dump_vmm();
320 platform_mark_gdt_writable();
321 platform_mark_gdt_readonly();
322
323 helpers::esr_default();
324 helpers::esr_df();
325 helpers::esr_gpf();
326 helpers::esr_nmi();
327 helpers::esr_pf();
328
329 bsl::enable_color();
330 return loader::tests();
331}

Callers

nothing calls this directly

Calls 11

esr_defaultFunction · 0.85
esr_dfFunction · 0.85
esr_gpfFunction · 0.85
esr_nmiFunction · 0.85
esr_pfFunction · 0.85
platform_expectsFunction · 0.70
platform_ensuresFunction · 0.70
platform_dump_vmmFunction · 0.70
testsFunction · 0.70

Tested by

no test coverage detected