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
99917b64
authored
Jan 19, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_cpp: checked for memory leaks in tests
parent
556fc8d6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
0 deletions
+9
-0
mtapi_cpp/test/mtapi_cpp_test_group.cc
+3
-0
mtapi_cpp/test/mtapi_cpp_test_queue.cc
+3
-0
mtapi_cpp/test/mtapi_cpp_test_task.cc
+3
-0
No files found.
mtapi_cpp/test/mtapi_cpp_test_group.cc
View file @
99917b64
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include <mtapi_cpp_test_config.h>
#include <mtapi_cpp_test_config.h>
#include <mtapi_cpp_test_group.h>
#include <mtapi_cpp_test_group.h>
#include <embb/base/c/memory_allocation.h>
struct
result_example_struct
{
struct
result_example_struct
{
mtapi_uint_t
value1
;
mtapi_uint_t
value1
;
mtapi_uint_t
value2
;
mtapi_uint_t
value2
;
...
@@ -81,5 +83,6 @@ void GroupTest::TestBasic() {
...
@@ -81,5 +83,6 @@ void GroupTest::TestBasic() {
embb
::
mtapi
::
Node
::
Finalize
();
embb
::
mtapi
::
Node
::
Finalize
();
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
//std::cout << "...done" << std::endl << std::endl;
//std::cout << "...done" << std::endl << std::endl;
}
}
mtapi_cpp/test/mtapi_cpp_test_queue.cc
View file @
99917b64
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#include <mtapi_cpp_test_config.h>
#include <mtapi_cpp_test_config.h>
#include <mtapi_cpp_test_queue.h>
#include <mtapi_cpp_test_queue.h>
#include <embb/base/c/memory_allocation.h>
#define JOB_TEST_TASK 42
#define JOB_TEST_TASK 42
#define TASK_TEST_ID 23
#define TASK_TEST_ID 23
#define QUEUE_TEST_ID 17
#define QUEUE_TEST_ID 17
...
@@ -63,5 +65,6 @@ void QueueTest::TestBasic() {
...
@@ -63,5 +65,6 @@ void QueueTest::TestBasic() {
embb
::
mtapi
::
Node
::
Finalize
();
embb
::
mtapi
::
Node
::
Finalize
();
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
//std::cout << "...done" << std::endl << std::endl;
//std::cout << "...done" << std::endl << std::endl;
}
}
mtapi_cpp/test/mtapi_cpp_test_task.cc
View file @
99917b64
...
@@ -31,6 +31,8 @@
...
@@ -31,6 +31,8 @@
#include <mtapi_cpp_test_config.h>
#include <mtapi_cpp_test_config.h>
#include <mtapi_cpp_test_task.h>
#include <mtapi_cpp_test_task.h>
#include <embb/base/c/memory_allocation.h>
#define JOB_TEST_TASK 42
#define JOB_TEST_TASK 42
#define TASK_TEST_ID 23
#define TASK_TEST_ID 23
...
@@ -117,5 +119,6 @@ void TaskTest::TestBasic() {
...
@@ -117,5 +119,6 @@ void TaskTest::TestBasic() {
embb
::
mtapi
::
Node
::
Finalize
();
embb
::
mtapi
::
Node
::
Finalize
();
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
//std::cout << "...done" << std::endl << std::endl;
//std::cout << "...done" << std::endl << std::endl;
}
}
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