1//
2// ProcessTest.h
3//
4// Definition of the ProcessTest class.
5//
6// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
7// and Contributors.
8//
9// SPDX-License-Identifier: BSL-1.0
10//
11
12
13#ifndef ProcessTest_INCLUDED
14#define ProcessTest_INCLUDED
15
16
17#include "Poco/Foundation.h"
18#include "Poco/CppUnit/TestCase.h"
19
20
21class ProcessTest: public CppUnit::TestCase
22{
23public:
24 ProcessTest(const std::string& name);
25 ~ProcessTest();
26
27 void testLaunch();
28 void testLaunchRedirectIn();
29 void testLaunchRedirectOut();
30 void testLaunchEnv();
31 void testLaunchArgs();
32 void testIsRunning();
33 void testIsRunningAllowsForTermination();
34 void testSignalExitCode();
35
36 void setUp();
37 void tearDown();
38
39 static CppUnit::Test* suite();
40
41private:
42 std::string execName();
43};
44
45
46#endif // ProcessTest_INCLUDED
47