diff options
author | Mikail Yayla <mikail.yayla@tu-dortmund.de> | 2019-04-09 18:48:49 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2019-10-11 08:55:53 +0200 |
commit | 5a1df5e73eb4d538aefd6efde00ea5762126a1c9 (patch) | |
tree | 547ae19837f7eafdbd0900b517d5b75bef08a25a /testsuites/libtests/ttest01/test-malloc.c | |
parent | ttest01: Add more test cases (diff) | |
download | rtems-5a1df5e73eb4d538aefd6efde00ea5762126a1c9.tar.bz2 |
ttest01: Add test outputs all test cases
Diffstat (limited to 'testsuites/libtests/ttest01/test-malloc.c')
-rw-r--r-- | testsuites/libtests/ttest01/test-malloc.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/testsuites/libtests/ttest01/test-malloc.c b/testsuites/libtests/ttest01/test-malloc.c index 961379fe5c..4dcf1f35d5 100644 --- a/testsuites/libtests/ttest01/test-malloc.c +++ b/testsuites/libtests/ttest01/test-malloc.c @@ -54,6 +54,36 @@ T_TEST_CASE(calloc_auto) T_eq_int(*i, 0); } +#include "t-self-test.h" + +T_TEST_OUTPUT(malloc_free, +"B:malloc_free\n" +"P:0:0:UI1:test-malloc.c:8\n" +"E:malloc_free:N:1:F:0:D:0.001000\n"); + +T_TEST_OUTPUT(malloc_auto, +"B:malloc_auto\n" +"P:0:0:UI1:test-malloc.c:17\n" +"E:malloc_auto:N:1:F:0:D:0.001000\n"); + +T_TEST_OUTPUT(zalloc_auto, +"B:zalloc_auto\n" +"P:0:0:UI1:test-malloc.c:35\n" +"P:1:0:UI1:test-malloc.c:36\n" +"P:2:0:UI1:test-malloc.c:26\n" +"E:zalloc_auto:N:3:F:0:D:0.001000\n"); + +T_TEST_OUTPUT(malloc_huge, +"B:malloc_huge\n" +"P:0:0:UI1:test-malloc.c:45\n" +"E:malloc_huge:N:1:F:0:D:0.001000\n"); + +T_TEST_OUTPUT(calloc_auto, +"B:calloc_auto\n" +"P:0:0:UI1:test-malloc.c:53\n" +"P:1:0:UI1:test-malloc.c:54\n" +"E:calloc_auto:N:2:F:0:D:0.001000\n"); + /* * The license is at the end of the file to be able to use the test code and * output in examples in the documentation. This is also the reason for the |