Changeset 429 for EcnlProtoTool/trunk/asp3_dcre/syssvc/tTestService.c
- Timestamp:
- Jul 3, 2020, 7:19:17 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/syssvc/tTestService.c
r321 r429 1 1 /* 2 * TOPPERS/ASP Kernel 3 * Toyohashi Open Platform for Embedded Real-Time Systems/ 4 * Advanced Standard Profile Kernel 2 * TOPPERS Software 3 * Toyohashi Open Platform for Embedded Real-Time Systems 5 4 * 6 * Copyright (C) 2016 by Embedded and Real-Time Systems Laboratory5 * Copyright (C) 2016-2018 by Embedded and Real-Time Systems Laboratory 7 6 * Graduate School of Information Science, Nagoya Univ., JAPAN 8 7 * … … 52 51 * テストプログラムの開始(受け口関数) 53 52 */ 54 void 53 ER 55 54 eTestService_start(const char *progname) 56 55 { 57 56 syslog_1(LOG_NOTICE, "Test program: %s", progname); 58 57 VAR_check_count = 0U; 59 } 60 61 /* 62 * 自己診断関数の設定 63 */ 64 void 65 eTestService_setBuiltInTest(Descriptor(sBuiltInTest) desc) 66 { 67 cBuiltInTest_set_descriptor(desc); 58 return(E_OK); 68 59 } 69 60 … … 87 78 * チェックポイント(受け口関数) 88 79 */ 89 void 80 ER 90 81 eTestService_checkPoint(uint_t count) 91 82 { … … 133 124 */ 134 125 SIL_UNL_INT(); 126 return(E_OK); 135 127 } 136 128 … … 138 130 * 完了チェックポイント(受け口関数) 139 131 */ 140 void 132 ER 141 133 eTestService_finishPoint(uint_t count) 142 134 { … … 146 138 } 147 139 test_finish(); 140 return(E_OK); 148 141 } 149 142 … … 151 144 * 条件チェックのエラー処理(受け口関数) 152 145 */ 153 void 146 ER 154 147 eTestService_assertError(const char *expr, const char *file, int_t line) 155 148 { … … 157 150 expr, file, line); 158 151 test_finish(); 159 } 160 161 /* 162 * エラーコードチェックのエラー処理(受け口関数) 163 */ 164 void 165 eTestService_serviceError(ER ercd, const char *file, int_t line) 166 { 167 syslog_3(LOG_ERROR, "## Unexpected error %s detected at %s:%u.\007", 168 itron_strerror(ercd), file, line); 169 test_finish(); 152 return(E_OK); 170 153 } 171 154 … … 174 157 */ 175 158 ER 159 eTestService_serviceError(ER ercd, const char *file, int_t line) 160 { 161 syslog_3(LOG_ERROR, "## Unexpected error %s detected at %s:%u.\007", 162 itron_strerror(ercd), file, line); 163 test_finish(); 164 return(E_OK); 165 } 166 167 /* 168 * 割込み優先度マスクの取得(受け口関数) 169 */ 170 ER 176 171 eTestService_getInterruptPriorityMask(PRI *p_ipm) 177 172 {
Note:
See TracChangeset
for help on using the changeset viewer.