Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5e44f597
authored
Mar 26, 2015
by
Tobias Fuchs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
containers_cpp: activated unit tests on Multiset
parent
29e2079e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
containers_cpp/include/embb/containers/multiset.h
+2
-2
containers_cpp/test/llx_scx_test.h
+1
-1
containers_cpp/test/main.cc
+3
-0
containers_cpp/test/multiset_test.cc
+0
-4
No files found.
containers_cpp/include/embb/containers/multiset.h
View file @
5e44f597
...
...
@@ -71,7 +71,7 @@ class Multiset {
private
:
typedef
primitives
::
LlxScxRecord
<
internal
::
MultisetNode
<
Type
>
>
node_t
;
typedef
primitives
::
LlxScxRecord
<
internal
::
MultisetNode
<
Type
>
>
*
node_ptr_t
;
static
const
size_t
UNDEFINED_POINTER
=
static_cast
<
node_ptr_t
>
(
0
)
;
static
const
node_ptr_t
UNDEFINED_POINTER
;
static
const
size_t
NUM_LLX_SCX_LINKS
=
3
;
public
:
...
...
@@ -97,7 +97,7 @@ class Multiset {
ObjectPool
<
node_t
,
ValuePool
>
node_pool_
;
node_ptr_t
head_
;
node_ptr_t
tail_
;
primitives
::
LlxScx
<
MultisetNode
<
Type
>
>
llx_scx_
;
primitives
::
LlxScx
<
internal
::
MultisetNode
<
Type
>
>
llx_scx_
;
};
}
// namespace containers
...
...
containers_cpp/test/llx_scx_test.h
View file @
5e44f597
...
...
@@ -92,7 +92,7 @@ class LlxScxTest : public partest::TestCase {
void
ParallelTest
();
int
num_threads_
;
LlxScx
<
Node
>
llxscx_
;
primitives
::
LlxScx
<
Node
>
llxscx_
;
Node
tail
;
Node
head
;
};
...
...
containers_cpp/test/main.cc
View file @
5e44f597
...
...
@@ -41,6 +41,7 @@
#include "./hazard_pointer_test.h"
#include "./object_pool_test.h"
#include "./llx_scx_test.h"
#include "./multiset_test.h"
#define COMMA ,
...
...
@@ -57,6 +58,7 @@ using embb::containers::test::QueueTest;
using
embb
::
containers
::
test
::
StackTest
;
using
embb
::
containers
::
test
::
ObjectPoolTest
;
using
embb
::
containers
::
test
::
LlxScxTest
;
using
embb
::
containers
::
test
::
MultisetTest
;
PT_MAIN
(
"Data Structures C++"
)
{
unsigned
int
max_threads
=
static_cast
<
unsigned
int
>
(
...
...
@@ -73,6 +75,7 @@ PT_MAIN("Data Structures C++") {
PT_RUN
(
ObjectPoolTest
<
LockFreeTreeValuePool
<
bool
COMMA
false
>
>
);
PT_RUN
(
ObjectPoolTest
<
WaitFreeArrayValuePool
<
bool
COMMA
false
>
>
);
PT_RUN
(
LlxScxTest
);
PT_RUN
(
MultisetTest
);
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
}
containers_cpp/test/multiset_test.cc
View file @
5e44f597
...
...
@@ -24,8 +24,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#if 0
#include <multiset_test.h>
#include <embb/containers/multiset.h>
...
...
@@ -58,5 +56,3 @@ void MultisetTest::SerialTest() {
}
// namespace test
}
// namespace containers
}
// namespace embb
#endif
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