2016-09-23 11:05:22 +02:00
|
|
|
#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
|
|
|
}
|