diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 63418d3..e806349 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -7,6 +7,7 @@ find_package(lz4 CONFIG REQUIRED) add_executable(CcpCoreTest CCPCallstack.cpp CcpCoreTest.cpp + CcpCrash.cpp CCPHash.cpp CcpFileUtils.cpp CcpMemory.cpp diff --git a/tests/CcpCrash.cpp b/tests/CcpCrash.cpp new file mode 100644 index 0000000..3c63cf6 --- /dev/null +++ b/tests/CcpCrash.cpp @@ -0,0 +1,12 @@ +// Copyright © 2026 CCP ehf. + +#include + +#include + +class CcpCrashDeathTest : public ::testing::Test {}; + +TEST_F( CcpCrashDeathTest, CrashOnPurpose ) +{ + EXPECT_DEATH( CcpCrashOnPurpose(), "" ); +}