mirror of
https://github.com/falk-werner/webfuse
synced 2026-10-17 17:04:17 +00:00
sepated unit and integration tests
This commit is contained in:
29
test-src/integration/webfuse/test/process.hpp
Normal file
29
test-src/integration/webfuse/test/process.hpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef WEBFUSE_PROCESS_HPP
|
||||
#define WEBFUSE_PROCESS_HPP
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
namespace webfuse
|
||||
{
|
||||
|
||||
class process
|
||||
{
|
||||
process(process const &) = delete;
|
||||
process operator=(process const &) = delete;
|
||||
process(process &&) = delete;
|
||||
process operator=(process &&) = delete;
|
||||
public:
|
||||
process(std::vector<std::string> const & commandline);
|
||||
~process();
|
||||
void kill(int signal_number);
|
||||
int wait();
|
||||
private:
|
||||
pid_t pid;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user