2012-04-29 18:52:25 +00:00
|
|
|
//
|
|
|
|
// ProcessTest.h
|
|
|
|
//
|
|
|
|
// $Id: //poco/1.4/Foundation/testsuite/src/ProcessTest.h#2 $
|
|
|
|
//
|
|
|
|
// Definition of the ProcessTest class.
|
|
|
|
//
|
|
|
|
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
|
|
|
// and Contributors.
|
|
|
|
//
|
2014-05-04 21:02:42 +02:00
|
|
|
// SPDX-License-Identifier: BSL-1.0
|
2012-04-29 18:52:25 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef ProcessTest_INCLUDED
|
|
|
|
#define ProcessTest_INCLUDED
|
|
|
|
|
|
|
|
|
|
|
|
#include "Poco/Foundation.h"
|
|
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
|
|
|
|
|
|
class ProcessTest: public CppUnit::TestCase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ProcessTest(const std::string& name);
|
|
|
|
~ProcessTest();
|
|
|
|
|
|
|
|
void testLaunch();
|
|
|
|
void testLaunchRedirectIn();
|
|
|
|
void testLaunchRedirectOut();
|
|
|
|
void testLaunchEnv();
|
2014-08-12 11:03:54 +03:00
|
|
|
void testIsRunning();
|
2015-10-03 13:07:59 +03:00
|
|
|
void testSignalExitCode();
|
2012-04-29 18:52:25 +00:00
|
|
|
|
|
|
|
void setUp();
|
|
|
|
void tearDown();
|
|
|
|
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // ProcessTest_INCLUDED
|