Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
63651e02
Commit
63651e02
authored
Jun 14, 2011
by
neverlord
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote_actor testing
parent
4bf5c01f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
9 deletions
+5
-9
cppa.creator.user
cppa.creator.user
+1
-1
unit_testing/main.cpp
unit_testing/main.cpp
+1
-1
unit_testing/test__remote_actor.cpp
unit_testing/test__remote_actor.cpp
+3
-7
No files found.
cppa.creator.user
View file @
63651e02
...
...
@@ -133,7 +133,7 @@
</data>
<data>
<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>
<variable>
ProjectExplorer.Project.Updater.FileVersion
</variable>
...
...
unit_testing/main.cpp
View file @
63651e02
...
...
@@ -101,7 +101,7 @@ int main(int argc, char** c_argv)
RUN_TEST
(
test__spawn
);
RUN_TEST
(
test__local_group
);
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
<<
"error(s) in all tests: "
<<
errors
<<
endl
;
...
...
unit_testing/test__remote_actor.cpp
View file @
63651e02
...
...
@@ -60,7 +60,7 @@ size_t test__remote_actor(const char* app_path, bool is_client,
}
}
while
(
!
success
);
cout
<<
"port = "
<<
port
<<
endl
;
//
cout << "port = " << port << endl;
std
::
string
cmd
;
{
std
::
ostringstream
oss
;
...
...
@@ -69,14 +69,10 @@ size_t test__remote_actor(const char* app_path, bool is_client,
}
// execute client_part() in a separate process,
// connected via localhost socket
//boost::thread child([&cmd]() { system(cmd.c_str()); });
cout
<<
__LINE__
<<
endl
;
boost
::
thread
child
([
&
cmd
]()
{
system
(
cmd
.
c_str
());
});
await_all_others_done
();
cout
<<
__LINE__
<<
endl
;
CPPA_CHECK_EQUAL
(
pongs
(),
5
);
// wait until separate process (in sep. thread) finished execution
cout
<<
__LINE__
<<
endl
;
//child.join();
cout
<<
__LINE__
<<
endl
;
child
.
join
();
return
CPPA_TEST_RESULT
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment