Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
122e8fe1
Commit
122e8fe1
authored
Oct 21, 2012
by
Davis King
Browse files
updated tests
parent
ccc6a8bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
dlib/test/bsp.cpp
dlib/test/bsp.cpp
+6
-6
No files found.
dlib/test/bsp.cpp
View file @
122e8fe1
...
@@ -159,9 +159,9 @@ namespace
...
@@ -159,9 +159,9 @@ namespace
{
{
int
result
;
int
result
;
std
::
vector
<
network_address
>
hosts
;
std
::
vector
<
network_address
>
hosts
;
hosts
.
push_back
(
network_address
(
"127.0.0.1
"
,
12345
)
);
hosts
.
push_back
(
"127.0.0.1
:
12345
"
);
hosts
.
push_back
(
network_address
(
"127.0.0.1"
,
12346
)
);
hosts
.
push_back
(
"localhost:
12346
"
);
hosts
.
push_back
(
network_address
(
"127.0.0.1
"
,
12347
)
);
hosts
.
push_back
(
"127.0.0.1
:
12347
"
);
bsp_connect
(
hosts
,
sum_array_driver
,
dlib
::
ref
(
v
),
dlib
::
ref
(
result
));
bsp_connect
(
hosts
,
sum_array_driver
,
dlib
::
ref
(
v
),
dlib
::
ref
(
result
));
dlog
<<
LINFO
<<
"result: "
<<
result
;
dlog
<<
LINFO
<<
"result: "
<<
result
;
...
@@ -203,9 +203,9 @@ namespace
...
@@ -203,9 +203,9 @@ namespace
try
try
{
{
std
::
vector
<
network_address
>
hosts
;
std
::
vector
<
network_address
>
hosts
;
hosts
.
push_back
(
network_address
(
"127.0.0.1
"
,
12345
)
);
hosts
.
push_back
(
"127.0.0.1
:
12345
"
);
hosts
.
push_back
(
network_address
(
"127.0.0.1
"
,
12346
)
);
hosts
.
push_back
(
"127.0.0.1
:
12346
"
);
hosts
.
push_back
(
network_address
(
"127.0.0.1
"
,
12347
)
);
hosts
.
push_back
(
"127.0.0.1
:
12347
"
);
bsp_connect
(
hosts
,
test2_job
<
id
>
);
bsp_connect
(
hosts
,
test2_job
<
id
>
);
}
}
catch
(
std
::
exception
&
e
)
catch
(
std
::
exception
&
e
)
...
...
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