Skip to content
Snippets Groups Projects
Commit 9f91e1cb authored by toole1's avatar toole1
Browse files

or this

git-svn-id: https://subversion.cs.illinois.edu/svn/cs225@3378 6fbd10e7-183d-0410-a318-cb416676e4f2
parent c862ecea
No related branches found
No related tags found
No related merge requests found
......@@ -462,7 +462,12 @@ bool UnitTestContainer::execute(bool enable_valgrind_call)
{
cout << std::flush;
test_execution executor(test, environment, enable_valgrind_call);
return fork_execute(executor);
}
template <typename F>
bool fork_execute(F & executor)
{
// Fork
pid_t process_id;
process_id = fork();
......
......@@ -125,6 +125,9 @@ namespace proxy
UnitTestContainer(const UnitTestContainer & other);
UnitTestContainer & operator=(const UnitTestContainer & other);
};
template <typename F>
bool fork_execute(F & executor);
class test_execution
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment