Changeset 11947299 in rtems


Ignore:
Timestamp:
Jun 13, 2014, 2:06:20 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
bd56356b
Parents:
73bf499
git-author:
Sebastian Huber <sebastian.huber@…> (06/13/14 14:06:20)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/13/14 14:07:47)
Message:

smptests: Avoid use of uninitialized data

Location:
testsuites/smptests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/smptests/smpaffinity01/init.c

    r73bf499 r11947299  
    5454
    5555  /* Verify rtems_task_set_affinity checks that at thread id is valid */
     56  CPU_ZERO(&cpuset);
    5657  CPU_SET(0, &cpuset);
    5758  puts( "Init - rtems_task_set_affinity - Invalid thread - RTEMS_INVALID_ID" );
     
    7677
    7778  /* Verify rtems_task_get_affinity checks that at thread id is valid */
     79  CPU_ZERO(&cpuset);
    7880  CPU_SET(0, &cpuset);
    7981  puts( "Init - rtems_task_get_affinity - Invalid thread - RTEMS_INVALID_ID" );
  • testsuites/smptests/smppsxaffinity02/init.c

    r73bf499 r11947299  
    5959
    6060  /* Verify pthread_setaffinity_np checks that at thread id is valid */
     61  CPU_ZERO(&cpuset);
    6162  CPU_SET(0, &cpuset);
    6263  puts( "Init - pthread_setaffinity_np - Invalid thread - ESRCH" );
     
    8182
    8283  /* Verify pthread_getaffinity_np checks that at thread id is valid */
     84  CPU_ZERO(&cpuset);
    8385  CPU_SET(0, &cpuset);
    8486  puts( "Init - pthread_getaffinity_np - Invalid thread - ESRCH" );
Note: See TracChangeset for help on using the changeset viewer.