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
743bf510
authored
Jan 19, 2015
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtapi_c: checked for memory leaks in tests
parent
7d4ecd5b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
0 deletions
+13
-0
mtapi_c/test/embb_mtapi_test_group.cc
+3
-0
mtapi_c/test/embb_mtapi_test_init_finalize.cc
+4
-0
mtapi_c/test/embb_mtapi_test_queue.cc
+3
-0
mtapi_c/test/embb_mtapi_test_task.cc
+3
-0
No files found.
mtapi_c/test/embb_mtapi_test_group.cc
View file @
743bf510
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <embb/base/c/thread.h>
#include <embb/base/c/thread.h>
#include <embb/base/c/memory_allocation.h>
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_group.h>
#include <embb_mtapi_test_group.h>
...
@@ -195,5 +196,7 @@ void GroupTest::TestBasic() {
...
@@ -195,5 +196,7 @@ void GroupTest::TestBasic() {
mtapi_finalize
(
&
status
);
mtapi_finalize
(
&
status
);
MTAPI_CHECK_STATUS
(
status
);
MTAPI_CHECK_STATUS
(
status
);
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
}
}
mtapi_c/test/embb_mtapi_test_init_finalize.cc
View file @
743bf510
...
@@ -24,6 +24,8 @@
...
@@ -24,6 +24,8 @@
* POSSIBILITY OF SUCH DAMAGE.
* POSSIBILITY OF SUCH DAMAGE.
*/
*/
#include <embb/base/c/memory_allocation.h>
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_init_finalize.h>
#include <embb_mtapi_test_init_finalize.h>
...
@@ -66,5 +68,7 @@ void InitFinalizeTest::TestBasic() {
...
@@ -66,5 +68,7 @@ void InitFinalizeTest::TestBasic() {
MTAPI_CHECK_STATUS
(
status
);
MTAPI_CHECK_STATUS
(
status
);
}
}
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
}
}
mtapi_c/test/embb_mtapi_test_queue.cc
View file @
743bf510
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_queue.h>
#include <embb_mtapi_test_queue.h>
#include <embb/base/c/memory_allocation.h>
#include <embb/base/c/internal/unused.h>
#include <embb/base/c/internal/unused.h>
#define JOB_TEST_TASK 42
#define JOB_TEST_TASK 42
...
@@ -129,5 +130,7 @@ void QueueTest::TestBasic() {
...
@@ -129,5 +130,7 @@ void QueueTest::TestBasic() {
mtapi_finalize
(
&
status
);
mtapi_finalize
(
&
status
);
MTAPI_CHECK_STATUS
(
status
);
MTAPI_CHECK_STATUS
(
status
);
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
}
}
mtapi_c/test/embb_mtapi_test_task.cc
View file @
743bf510
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_config.h>
#include <embb_mtapi_test_task.h>
#include <embb_mtapi_test_task.h>
#include <embb/base/c/memory_allocation.h>
#include <embb/base/c/internal/unused.h>
#include <embb/base/c/internal/unused.h>
#define JOB_TEST_TASK 42
#define JOB_TEST_TASK 42
...
@@ -162,5 +163,7 @@ void TaskTest::TestBasic() {
...
@@ -162,5 +163,7 @@ void TaskTest::TestBasic() {
mtapi_finalize
(
&
status
);
mtapi_finalize
(
&
status
);
MTAPI_CHECK_STATUS
(
status
);
MTAPI_CHECK_STATUS
(
status
);
PT_EXPECT
(
embb_get_bytes_allocated
()
==
0
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
embb_mtapi_log_info
(
"...done
\n\n
"
);
}
}
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