diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-06-06 14:05:38 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-06-07 14:08:27 +0300 |
commit | 7c4f5e6464a7d9a9c48b4d6773fbb348624cc32e (patch) | |
tree | b8b86eba7852bd00191600e0e4696cc5a7c31e42 /tests/process-run/driver.cxx | |
parent | a32378a9aedd61c51166432ecd26a6a5dd405ebb (diff) |
Support passing environment variables to child process
Diffstat (limited to 'tests/process-run/driver.cxx')
-rw-r--r-- | tests/process-run/driver.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/process-run/driver.cxx b/tests/process-run/driver.cxx index ed35d1e..ff9dd25 100644 --- a/tests/process-run/driver.cxx +++ b/tests/process-run/driver.cxx @@ -7,6 +7,7 @@ #include <libbutl/path.hxx> #include <libbutl/process.hxx> #include <libbutl/fdstream.hxx> +#include <libbutl/small-vector.hxx> using namespace std; using namespace butl; @@ -14,20 +15,18 @@ using namespace butl; template <typename I, typename O, typename E, - typename P, typename... A> process_exit run (I&& in, O&& out, E&& err, - const P& p, + const process_env& env, A&&... args) { return process_run (forward<I> (in), forward<O> (out), forward<E> (err), - dir_path (), - p, + env, forward<A> (args)...); } @@ -72,7 +71,6 @@ main (int argc, const char* argv[]) cout << endl; }, 0, 1, 2, - dir_path (), p, "-c"); |