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
b23f2def
Commit
b23f2def
authored
May 19, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix args to run_program in unit tests and add -n
parent
82806014
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
libcaf_io/test/broker.cpp
libcaf_io/test/broker.cpp
+2
-2
libcaf_io/test/remote_actor.cpp
libcaf_io/test/remote_actor.cpp
+2
-2
libcaf_io/test/typed_remote_actor.cpp
libcaf_io/test/typed_remote_actor.cpp
+3
-2
No files found.
libcaf_io/test/broker.cpp
View file @
b23f2def
...
@@ -177,8 +177,8 @@ void run_server(bool spawn_client, const char* bin_path) {
...
@@ -177,8 +177,8 @@ void run_server(bool spawn_client, const char* bin_path) {
[
&
](
uint16_t
port
)
{
[
&
](
uint16_t
port
)
{
CAF_MESSAGE
(
"server is running on port "
<<
port
);
CAF_MESSAGE
(
"server is running on port "
<<
port
);
if
(
spawn_client
)
{
if
(
spawn_client
)
{
auto
child
=
detail
::
run_program
(
self
,
bin_path
,
"-
s broker -- -c
"
,
auto
child
=
detail
::
run_program
(
self
,
bin_path
,
"-
n"
,
"-s"
,
"broker
"
,
port
);
"--"
,
"-c"
,
port
);
CAF_MESSAGE
(
"block till child process has finished"
);
CAF_MESSAGE
(
"block till child process has finished"
);
child
.
join
();
child
.
join
();
}
}
...
...
libcaf_io/test/remote_actor.cpp
View file @
b23f2def
...
@@ -454,8 +454,8 @@ void test_remote_actor(const char* app_path, bool run_remote_actor) {
...
@@ -454,8 +454,8 @@ void test_remote_actor(const char* app_path, bool run_remote_actor) {
CAF_CHECK
(
serv
==
serv2
);
CAF_CHECK
(
serv
==
serv2
);
thread
child
;
thread
child
;
if
(
run_remote_actor
)
{
if
(
run_remote_actor
)
{
child
=
detail
::
run_program
(
self
,
app_path
,
"-
s remote_actor -- -c "
,
port2
,
child
=
detail
::
run_program
(
self
,
app_path
,
"-
n"
,
"-s"
,
"remote_actor"
,
port1
,
gport
);
"--"
,
"-c"
,
port2
,
port1
,
gport
);
}
else
{
}
else
{
CAF_MESSAGE
(
"please run client with: "
CAF_MESSAGE
(
"please run client with: "
<<
"-c "
<<
port2
<<
" "
<<
port1
<<
" "
<<
gport
);
<<
"-c "
<<
port2
<<
" "
<<
port1
<<
" "
<<
gport
);
...
...
libcaf_io/test/typed_remote_actor.cpp
View file @
b23f2def
...
@@ -115,8 +115,9 @@ CAF_TEST(test_typed_remote_actor) {
...
@@ -115,8 +115,9 @@ CAF_TEST(test_typed_remote_actor) {
// execute client_part() in a separate process,
// execute client_part() in a separate process,
// connected via localhost socket
// connected via localhost socket
scoped_actor
self
;
scoped_actor
self
;
auto
child
=
detail
::
run_program
(
self
,
caf
::
test
::
engine
::
path
(),
auto
child
=
detail
::
run_program
(
self
,
caf
::
test
::
engine
::
path
(),
"-n"
,
"-s typed_remote_actor -- -c"
,
port
);
"-s"
,
"typed_remote_actor"
,
"--"
,
"-c"
,
port
);
CAF_MESSAGE
(
"block till child process has finished"
);
CAF_MESSAGE
(
"block till child process has finished"
);
child
.
join
();
child
.
join
();
self
->
await_all_other_actors_done
();
self
->
await_all_other_actors_done
();
...
...
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