16 using namespace wibble::sys;
34 cout <<
"antani" << endl;
39 std::string suckFd(
int fd)
45 int r = read(fd, &c, 1);
55 struct TestChildprocess {
62 pid_t pid = child.fork();
71 int res = child.wait();
84 pid_t pid = child.forkAndRedirect(0, &out, 0);
95 Exec child(
"/bin/echo");
96 child.args.push_back(
"antani");
100 pid_t pid = child.forkAndRedirect(0, &out, 0);
110 Test shellCommand() {
115 pid_t pid = child.forkAndRedirect(0, &out, 0);