Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
code
PMem-based Data Structures
Commits
e9e6d95b
Commit
e9e6d95b
authored
Nov 13, 2019
by
Philipp Götze
Browse files
🐞
Trying to solve weird heisenbug
parent
9b603496
Pipeline
#278
failed with stages
in 25 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/test/wHBPTreeTest.cpp
View file @
e9e6d95b
...
...
@@ -44,6 +44,7 @@ TEST_CASE("Finding the leaf node containing a key", "[wHBPTree]") {
struct
root
{
persistent_ptr
<
wHBPTreeType
>
btree1
;
persistent_ptr
<
wHBPTreeType2
>
btree2
;
persistent_ptr
<
wHBPTreeType2
>
btree2_2
;
persistent_ptr
<
wHBPTreeType3
>
btree3
;
persistent_ptr
<
wHBPTreeType4
>
btree4
;
persistent_ptr
<
wHBPTreeType5
>
btree5
;
...
...
@@ -66,6 +67,8 @@ TEST_CASE("Finding the leaf node containing a key", "[wHBPTree]") {
if
(
!
q
->
btree2
)
transaction
::
run
(
pop
,
[
&
]
{
q
->
btree2
=
make_persistent
<
wHBPTreeType2
>
();
});
if
(
!
q
->
btree2_2
)
transaction
::
run
(
pop
,
[
&
]
{
q
->
btree2_2
=
make_persistent
<
wHBPTreeType2
>
();
});
if
(
!
q
->
btree3
)
transaction
::
run
(
pop
,
[
&
]
{
q
->
btree3
=
make_persistent
<
wHBPTreeType3
>
();
});
...
...
@@ -667,7 +670,7 @@ TEST_CASE("Finding the leaf node containing a key", "[wHBPTree]") {
/* ------------------------------------------------------------------ */
SECTION
(
"Handling of underflow at a inner node"
)
{
auto
btree
=
q
->
btree2
;
auto
btree
=
q
->
btree2
_2
;
wHBPTreeType2
::
SplitInfo
splitInfo
;
auto
leaf1
=
btree
->
newLeafNode
();
...
...
@@ -1058,6 +1061,7 @@ TEST_CASE("Finding the leaf node containing a key", "[wHBPTree]") {
/* Clean up */
delete_persistent_atomic
<
wHBPTreeType
>
(
q
->
btree1
);
delete_persistent_atomic
<
wHBPTreeType2
>
(
q
->
btree2
);
delete_persistent_atomic
<
wHBPTreeType2
>
(
q
->
btree2_2
);
delete_persistent_atomic
<
wHBPTreeType3
>
(
q
->
btree3
);
delete_persistent_atomic
<
wHBPTreeType4
>
(
q
->
btree4
);
delete_persistent_atomic
<
wHBPTreeType5
>
(
q
->
btree5
);
...
...
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