aboutsummaryrefslogtreecommitdiff
path: root/libs/kstd/tests/include
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2026-03-23 10:32:15 +0100
committerFelix Morgner <felix.morgner@ost.ch>2026-03-23 10:32:15 +0100
commit48a2c33d205397adeaad385aebc1d1e008915b3e (patch)
tree379265414d551747585a1f86b9f390539ef2dfeb /libs/kstd/tests/include
parent754012dd458985a6a4953c99204c6651318892b2 (diff)
downloadteachos-48a2c33d205397adeaad385aebc1d1e008915b3e.tar.xz
teachos-48a2c33d205397adeaad385aebc1d1e008915b3e.zip
ci: enable test builds
Diffstat (limited to 'libs/kstd/tests/include')
-rw-r--r--libs/kstd/tests/include/kstd/tests/os_panic.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/libs/kstd/tests/include/kstd/tests/os_panic.hpp b/libs/kstd/tests/include/kstd/tests/os_panic.hpp
new file mode 100644
index 0000000..4396a9f
--- /dev/null
+++ b/libs/kstd/tests/include/kstd/tests/os_panic.hpp
@@ -0,0 +1,23 @@
+#ifndef KSTD_TESTS_OS_PANIC_HPP
+#define KSTD_TESTS_OS_PANIC_HPP
+
+#include <source_location>
+#include <stdexcept>
+#include <string>
+
+namespace kstd::tests
+{
+
+ struct os_panic : std::runtime_error
+ {
+ os_panic(std::string message, std::source_location location)
+ : std::runtime_error{message}
+ , location(location)
+ {}
+
+ std::source_location location;
+ };
+
+} // namespace kstd::tests
+
+#endif \ No newline at end of file