Changeset c821b92 in rtems
- Timestamp:
- 11/22/22 18:09:12 (13 months ago)
- Branches:
- master
- Children:
- 8bc15aba
- Parents:
- 94df7a01
- git-author:
- Sebastian Huber <sebastian.huber@…> (11/22/22 18:09:12)
- git-committer:
- Sebastian Huber <sebastian.huber@…> (05/19/23 05:47:37)
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/build/testsuites/validation/validation-no-clock-0.yml
r94df7a01 rc821b92 13 13 - role: build-dependency 14 14 uid: objnodebug 15 - role: build-dependency 16 uid: objpreinitarray 15 17 source: 16 18 - testsuites/validation/tc-acfg.c -
testsuites/validation/tc-score-thread.c
r94df7a01 rc821b92 96 96 * - Clean up all used resources. 97 97 * 98 * - Validate the global construction. Mark that the test case executed. 99 * 100 * - Check that the global constructor was called exactly once. 101 * 102 * - Check that the global construction was done by the Classic API user 103 * initialization task. 104 * 105 * - Check that the global constructor was called before the task entry. 106 * 98 107 * @{ 99 108 */ … … 123 132 124 133 typedef ScoreThreadValThread_Context Context; 134 135 static bool test_case_executed; 136 137 static bool constructor_test_case_executed; 138 139 static uint32_t constructor_calls; 140 141 static rtems_id constructor_id; 142 143 static __attribute__(( __constructor__ )) void Constructor( void ) 144 { 145 constructor_test_case_executed = test_case_executed; 146 ++constructor_calls; 147 constructor_id = rtems_task_self(); 148 } 125 149 126 150 static void TaskTerminate( rtems_tcb *executing ) … … 291 315 292 316 /** 317 * @brief Validate the global construction. Mark that the test case executed. 318 */ 319 static void ScoreThreadValThread_Action_2( ScoreThreadValThread_Context *ctx ) 320 { 321 test_case_executed = true; 322 323 /* 324 * Check that the global constructor was called exactly once. 325 */ 326 T_eq_u32( constructor_calls, 1 ); 327 328 /* 329 * Check that the global construction was done by the Classic API user 330 * initialization task. 331 */ 332 T_eq_u32( constructor_id, rtems_task_self() ); 333 334 /* 335 * Check that the global constructor was called before the task entry. 336 */ 337 T_false( constructor_test_case_executed ); 338 } 339 340 /** 293 341 * @fn void T_case_body_ScoreThreadValThread( void ) 294 342 */ … … 301 349 ScoreThreadValThread_Action_0( ctx ); 302 350 ScoreThreadValThread_Action_1( ctx ); 351 ScoreThreadValThread_Action_2( ctx ); 303 352 } 304 353
Note: See TracChangeset
for help on using the changeset viewer.