summaryrefslogtreecommitdiff
path: root/source/tests/test_signals.cpp
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-03 22:20:31 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-03 22:20:31 +0200
commitee0a2e7e1965200ec5968ec310bee429db819dde (patch)
tree8d5632e29233d87a6a14de1165abac7e99bd879a /source/tests/test_signals.cpp
parent835e1fcd131c63ee2b3b647e327b33a3bfb369e3 (diff)
downloadkit-ee0a2e7e1965200ec5968ec310bee429db819dde.zip
Remove const
Diffstat (limited to 'source/tests/test_signals.cpp')
-rw-r--r--source/tests/test_signals.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/source/tests/test_signals.cpp b/source/tests/test_signals.cpp
new file mode 100644
index 0000000..0f6d77a
--- /dev/null
+++ b/source/tests/test_signals.cpp
@@ -0,0 +1,29 @@
+#include "../kit_test/test.h"
+
+#include <cstdlib>
+#include <stdexcept>
+
+/* FIXME
+ * MSVC tests fail in GitHub Actions.
+ */
+
+TEST("c++ exception") {
+ throw std::exception();
+}
+
+TEST("abort") {
+ abort();
+}
+
+TEST("invalid access") {
+ *(volatile int *) nullptr = 42;
+}
+
+int main(int argc, char **argv) {
+#ifndef _MSC_VER
+ if (run_tests(argc, argv) != 1)
+ return 1;
+#endif
+
+ return 0;
+}