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
be0c69cb
authored
Apr 26, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_cpp: fixed bug in tests
parent
646ed8e0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
mtapi_cpp/test/mtapi_cpp_test_group.cc
+1
-0
mtapi_cpp/test/mtapi_cpp_test_queue.cc
+1
-0
mtapi_cpp/test/mtapi_cpp_test_task.cc
+4
-0
No files found.
mtapi_cpp/test/mtapi_cpp_test_group.cc
View file @
be0c69cb
...
@@ -109,6 +109,7 @@ void GroupTest::TestBasic() {
...
@@ -109,6 +109,7 @@ void GroupTest::TestBasic() {
PT_EXPECT_EQ
(
status
,
MTAPI_GROUP_COMPLETED
);
PT_EXPECT_EQ
(
status
,
MTAPI_GROUP_COMPLETED
);
}
}
action
.
Delete
();
embb
::
mtapi
::
Node
::
Finalize
();
embb
::
mtapi
::
Node
::
Finalize
();
PT_EXPECT_EQ
(
embb_get_bytes_allocated
(),
0u
);
PT_EXPECT_EQ
(
embb_get_bytes_allocated
(),
0u
);
...
...
mtapi_cpp/test/mtapi_cpp_test_queue.cc
View file @
be0c69cb
...
@@ -73,6 +73,7 @@ void QueueTest::TestBasic() {
...
@@ -73,6 +73,7 @@ void QueueTest::TestBasic() {
PT_EXPECT_EQ
(
result
,
1
);
PT_EXPECT_EQ
(
result
,
1
);
}
}
action
.
Delete
();
embb
::
mtapi
::
Node
::
Finalize
();
embb
::
mtapi
::
Node
::
Finalize
();
PT_EXPECT_EQ
(
embb_get_bytes_allocated
(),
0u
);
PT_EXPECT_EQ
(
embb_get_bytes_allocated
(),
0u
);
...
...
mtapi_cpp/test/mtapi_cpp_test_task.cc
View file @
be0c69cb
...
@@ -107,6 +107,8 @@ void TaskTest::TestBasic() {
...
@@ -107,6 +107,8 @@ void TaskTest::TestBasic() {
mtapi_status_t
status
=
task
.
Wait
();
mtapi_status_t
status
=
task
.
Wait
();
PT_EXPECT_EQ
(
status
,
MTAPI_SUCCESS
);
PT_EXPECT_EQ
(
status
,
MTAPI_SUCCESS
);
PT_EXPECT
(
test
==
"simple"
);
PT_EXPECT
(
test
==
"simple"
);
action_task
.
Delete
();
}
}
{
{
...
@@ -120,6 +122,8 @@ void TaskTest::TestBasic() {
...
@@ -120,6 +122,8 @@ void TaskTest::TestBasic() {
testDoSomethingElse
();
testDoSomethingElse
();
mtapi_status_t
status
=
task
.
Wait
();
mtapi_status_t
status
=
task
.
Wait
();
PT_EXPECT_EQ
(
status
,
MTAPI_ERR_ACTION_FAILED
);
PT_EXPECT_EQ
(
status
,
MTAPI_ERR_ACTION_FAILED
);
action_error
.
Delete
();
}
}
embb
::
mtapi
::
Node
::
Finalize
();
embb
::
mtapi
::
Node
::
Finalize
();
...
...
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