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
81c484c8
Commit
81c484c8
authored
Oct 21, 2012
by
Davis King
Browse files
Added another BSP test.
parent
2d925f1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
dlib/test/bsp.cpp
dlib/test/bsp.cpp
+21
-0
No files found.
dlib/test/bsp.cpp
View file @
81c484c8
...
...
@@ -400,6 +400,26 @@ namespace
DLIB_TEST
(
error_occurred
==
false
);
}
// ----------------------------------------------------------------------------------------
void
test5_job
(
bsp_context
&
,
int
&
val
)
{
val
=
25
;
}
void
dotest5
()
{
dlog
<<
LINFO
<<
"start dotest5()"
;
print_spinner
();
std
::
vector
<
network_address
>
hosts
;
int
val
=
0
;
bsp_connect
(
hosts
,
test5_job
,
dlib
::
ref
(
val
));
DLIB_TEST
(
val
==
25
);
}
// ----------------------------------------------------------------------------------------
class
bsp_tester
:
public
tester
...
...
@@ -423,6 +443,7 @@ namespace
dotest2
<
2
>
();
dotest3
();
dotest4
();
dotest5
();
}
}
}
a
;
...
...
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