aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/cpu.tests.cpp
blob: 9ce29179bedc2a4298533e8d35a5d36cfd7cf3e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <kapi/cpu.hpp>

#include <kernel/test_support/cpu.hpp>

#include <catch2/catch_test_macros.hpp>

SCENARIO("Kernel testing kapi::cpu shims", "[support]")
{
  GIVEN("the test support infrastructure is initialized")
  {
    WHEN("a CPU halt is requested")
    {
      THEN("the correct exception is thrown")
      {
        REQUIRE_THROWS_AS(kapi::cpu::halt(), kernel::tests::cpu::halt);
      }
    }
  }
}