aboutsummaryrefslogtreecommitdiff
path: root/kernel/kapi/cpu.tests.cpp
blob: 85b20fd017290a6d5be0aeb220b149dfc84fb505 (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);
      }
    }
  }
}