Commit 63651e02 authored by neverlord's avatar neverlord

remote_actor testing

parent 4bf5c01f
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
</data> </data>
<data> <data>
<variable>ProjectExplorer.Project.Updater.EnvironmentId</variable> <variable>ProjectExplorer.Project.Updater.EnvironmentId</variable>
<value type="QString">{07fcd197-092d-45a0-8500-3be614e6ae31}</value> <value type="QString">{23902c37-f07e-47cd-bb19-c366b9f708db}</value>
</data> </data>
<data> <data>
<variable>ProjectExplorer.Project.Updater.FileVersion</variable> <variable>ProjectExplorer.Project.Updater.FileVersion</variable>
......
...@@ -101,7 +101,7 @@ int main(int argc, char** c_argv) ...@@ -101,7 +101,7 @@ int main(int argc, char** c_argv)
RUN_TEST(test__spawn); RUN_TEST(test__spawn);
RUN_TEST(test__local_group); RUN_TEST(test__local_group);
RUN_TEST(test__atom); RUN_TEST(test__atom);
//RUN_TEST_A3(test__remote_actor, c_argv[0], false, argv); RUN_TEST_A3(test__remote_actor, c_argv[0], false, argv);
cout << endl cout << endl
<< "error(s) in all tests: " << errors << "error(s) in all tests: " << errors
<< endl; << endl;
......
...@@ -60,7 +60,7 @@ size_t test__remote_actor(const char* app_path, bool is_client, ...@@ -60,7 +60,7 @@ size_t test__remote_actor(const char* app_path, bool is_client,
} }
} }
while (!success); while (!success);
cout << "port = " << port << endl; //cout << "port = " << port << endl;
std::string cmd; std::string cmd;
{ {
std::ostringstream oss; std::ostringstream oss;
...@@ -69,14 +69,10 @@ size_t test__remote_actor(const char* app_path, bool is_client, ...@@ -69,14 +69,10 @@ size_t test__remote_actor(const char* app_path, bool is_client,
} }
// execute client_part() in a separate process, // execute client_part() in a separate process,
// connected via localhost socket // connected via localhost socket
//boost::thread child([&cmd]() { system(cmd.c_str()); }); boost::thread child([&cmd]() { system(cmd.c_str()); });
cout << __LINE__ << endl;
await_all_others_done(); await_all_others_done();
cout << __LINE__ << endl;
CPPA_CHECK_EQUAL(pongs(), 5); CPPA_CHECK_EQUAL(pongs(), 5);
// wait until separate process (in sep. thread) finished execution // wait until separate process (in sep. thread) finished execution
cout << __LINE__ << endl; child.join();
//child.join();
cout << __LINE__ << endl;
return CPPA_TEST_RESULT; return CPPA_TEST_RESULT;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment