Files
privacore-open-source-searc…/test/unit/ProcessTest.cpp

17 lines
360 B
C++
Raw Normal View History

#include <gtest/gtest.h>
2015-12-18 11:47:42 +01:00
#include "Process.h"
TEST(ProcessTest, Abort) {
EXPECT_EXIT(g_process.shutdownAbort(), ::testing::KilledBySignal(SIGABRT), "");
// verify file is created
struct stat buffer;
EXPECT_TRUE(stat(Process::getAbortFileName(), &buffer) == 0);
// remove file
unlink(Process::getAbortFileName());
2016-01-20 13:32:48 +01:00
/// @todo ALC verify/remove core
2015-12-18 11:47:42 +01:00
}