diff options
Diffstat (limited to 'zencore/thread.cpp')
| -rw-r--r-- | zencore/thread.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp index aa5e91c72..5aa0f2688 100644 --- a/zencore/thread.cpp +++ b/zencore/thread.cpp @@ -5,6 +5,7 @@ #include <fmt/format.h> #include <zencore/except.h> #include <zencore/string.h> +#include <zencore/testing.h> #if ZEN_PLATFORM_WINDOWS # include <zencore/windows.h> @@ -391,9 +392,20 @@ Sleep(int ms) // Testing related code follows... // +#if ZEN_WITH_TESTS + void thread_forcelink() { } +TEST_CASE("Thread") +{ + int Pid = GetCurrentProcessId(); + CHECK(Pid > 0); + CHECK(IsProcessRunning(Pid)); +} + +#endif // ZEN_WITH_TESTS + } // namespace zen |