ubinos
misctest01.c
/*
Copyright (C) 2009 Sung Ho Park
Contact: ubinos.org@gmail.com
This file is part of the lib_ubik_test component of the Ubinos.
GNU General Public License Usage
This file may be used under the terms of the GNU
General Public License version 3.0 as published by the Free Software
Foundation and appearing in the file license_gpl3.txt included in the
packaging of this file. Please review the following information to
ensure the GNU General Public License version 3.0 requirements will be
met: http://www.gnu.org/copyleft/gpl.html.
GNU Lesser General Public License Usage
Alternatively, this file may be used under the terms of the GNU Lesser
General Public License version 2.1 as published by the Free Software
Foundation and appearing in the file license_lgpl.txt included in the
packaging of this file. Please review the following information to
ensure the GNU Lesser General Public License version 2.1 requirements
will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
Commercial Usage
Alternatively, licensees holding valid commercial licenses may
use this file in accordance with the commercial license agreement
provided with the software or, alternatively, in accordance with the
terms contained in a written agreement between you and rightful owner.
*/
#if !( UBINOS__UBIK_TEST__EXCLUDE_MISCTESTSET == 1)
#include <stdio.h>
#include <stdlib.h>
int r;
printf("\r\n");
printf("<test>\r\n");
printf("<name>ubik_test_misctest01</name>\r\n");
printf("<description>System information</description>\n\r");
printf("<message>\n\r");
printf("\n\r");
printf("----------------------------------------------------------------------------------------------------\r\n");
#if (UBINOS__UBICLIB__USE_MALLOC_RETARGETING == 1)
if (0 < r) {
printf("fail at heap_printheapinfo\r\n");
r = -1;
goto end0;
}
printf("----------------------------------------------------------------------------------------------------\r\n");
printf("\r\n");
#endif /* (UBINOS__UBICLIB__USE_MALLOC_RETARGETING == 1) */
if (0 != r) {
printf("fail at ubik_printkernelinfo\r\n");
r = -1;
goto end0;
}
end0:
printf("</message>\n\r");
printf("<result>");
if (0 == r) {
printf("pass");
}
else {
printf("fail");
}
printf("</result>\r\n");
printf("</test>\r\n");
printf("\r\n");
return r;
}
#endif /* !( UBINOS__UBIK_TEST__EXCLUDE_MISCTESTSET == 1) */
ubik_test_misctest01
int ubik_test_misctest01(void)
This function prints system information.
ubik_test.h
ubik test API
ubik_printkernelinfo
int ubik_printkernelinfo(void)
NULL
#define NULL
Definition: type.h:65
stdlib.h
stdlib (Standard Library) API
heap_printheapinfo
int heap_printheapinfo(heap_pt heap)