Changeset 51b3cbca in rtems for testsuites/samples


Ignore:
Timestamp:
Oct 4, 2018, 1:23:25 PM (17 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
1d39e96
Parents:
8776bb9
git-author:
Sebastian Huber <sebastian.huber@…> (10/04/18 13:23:25)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/05/18 11:41:07)
Message:

tests: Use rtems_task_exit()

Update #3533.

Location:
testsuites/samples
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • testsuites/samples/base_mp/init.c

    r8776bb9 r51b3cbca  
    4545  rtems_test_assert(status == RTEMS_SUCCESSFUL);
    4646
    47   rtems_task_delete( RTEMS_SELF );
     47  rtems_task_exit();
    4848}
  • testsuites/samples/base_sp/init.c

    r8776bb9 r51b3cbca  
    4444  directive_failed( status, "start" );
    4545
    46   status = rtems_task_delete( RTEMS_SELF );
    47   directive_failed( status, "delete" );
     46  rtems_task_exit();
    4847}
  • testsuites/samples/capture/init.c

    r8776bb9 r51b3cbca  
    6868    setup_tasks_to_watch ();
    6969
    70     rtems_task_delete (RTEMS_SELF);
     70    rtems_task_exit();
    7171  } else {
    7272    TEST_END();
  • testsuites/samples/capture/test1.c

    r8776bb9 r51b3cbca  
    6767  capture_CT1a_deleted = 1;
    6868
    69   rtems_task_delete (RTEMS_SELF);
     69  rtems_task_exit();
    7070}
    7171
     
    8080  capture_CT1b_deleted = 1;
    8181
    82   rtems_task_delete (RTEMS_SELF);
     82  rtems_task_exit();
    8383}
    8484
     
    103103  capture_CT1c_deleted = 1;
    104104
    105   rtems_task_delete (RTEMS_SELF);
     105  rtems_task_exit();
    106106}
    107107
     
    154154  {
    155155    printf ("error: Test 1: cannot start CT1a: %s\n", rtems_status_text (sc));
    156     rtems_task_delete (id[0]);
     156    rtems_task_exit();
    157157    rtems_semaphore_delete (mutex);
    158158    return;
     
    171171  {
    172172    printf ("error: Test 1: cannot create CT1b: %s\n", rtems_status_text (sc));
    173     rtems_task_delete (id[0]);
     173    rtems_task_exit();
    174174    rtems_semaphore_delete (mutex);
    175175    return;
     
    181181  {
    182182    printf ("error: Test 1: cannot start CT1b: %s\n", rtems_status_text (sc));
    183     rtems_task_delete (id[1]);
    184     rtems_task_delete (id[0]);
     183    rtems_task_exit();
     184    rtems_task_exit();
    185185    rtems_semaphore_delete (mutex);
    186186    return;
     
    199199  {
    200200    printf ("error: Test 1: cannot create CT1c: %s\n", rtems_status_text (sc));
    201     rtems_task_delete (id[1]);
    202     rtems_task_delete (id[0]);
     201    rtems_task_exit();
     202    rtems_task_exit();
    203203    rtems_semaphore_delete (mutex);
    204204    return;
     
    210210  {
    211211    printf ("error: Test 1: cannot start CT1c: %s\n", rtems_status_text (sc));
    212     rtems_task_delete (id[2]);
    213     rtems_task_delete (id[1]);
    214     rtems_task_delete (id[0]);
     212    rtems_task_exit();
     213    rtems_task_exit();
     214    rtems_task_exit();
    215215    rtems_semaphore_delete (mutex);
    216216    return;
     
    229229  {
    230230    printf ("error: Test 1: test tasks did not delete\n");
    231     rtems_task_delete (id[2]);
    232     rtems_task_delete (id[1]);
    233     rtems_task_delete (id[0]);
     231    rtems_task_exit();
     232    rtems_task_exit();
     233    rtems_task_exit();
    234234  }
    235235
  • testsuites/samples/fileio/init.c

    r8776bb9 r51b3cbca  
    11721172    directive_failed( status, "start" );
    11731173
    1174     status = rtems_task_delete( RTEMS_SELF );
    1175     directive_failed( status, "delete" );
     1174    rtems_task_exit();
    11761175  } else {
    11771176    TEST_END();
  • testsuites/samples/loopback/init.c

    r8776bb9 r51b3cbca  
    121121        printf("Can't close worker task socket: %s\n", strerror(errno));
    122122    printf("Worker task terminating.\n");
    123     rtems_task_delete(RTEMS_SELF);
     123    rtems_task_exit();
    124124}
    125125
     
    153153        if (s1 < 0)
    154154            if (errno == ENXIO)
    155                 rtems_task_delete(RTEMS_SELF);
     155                rtems_task_exit();
    156156            else
    157157                rtems_panic("Can't accept connection: %s", strerror(errno));
     
    221221    clientWorker(arg);
    222222    printf("Client task terminating.\n");
    223     rtems_task_delete( RTEMS_SELF );
     223    rtems_task_exit();
    224224}
    225225
  • testsuites/samples/pppd/init.c

    r8776bb9 r51b3cbca  
    5858  rtems_pppd_initialize();
    5959  pppdapp_initialize();
    60   rtems_task_delete(RTEMS_SELF);
     60  rtems_task_exit();
    6161}
  • testsuites/samples/pppd/pppdapp.c

    r8776bb9 r51b3cbca  
    126126
    127127  /* terminate myself */
    128   rtems_task_delete(RTEMS_SELF);
     128  rtems_task_exit();
    129129}
    130130
  • testsuites/samples/ticker/init.c

    r8776bb9 r51b3cbca  
    7575  directive_failed( status, "start 3" );
    7676
    77   status = rtems_task_delete( RTEMS_SELF );
    78   directive_failed( status, "delete" );
     77  rtems_task_exit();
    7978}
  • testsuites/samples/unlimited/init.c

    r8776bb9 r51b3cbca  
    6767  printf( "task %u ending.\n",  my_n);
    6868
    69   rtems_task_delete(RTEMS_SELF);
     69  rtems_task_exit();
    7070}
    7171
Note: See TracChangeset for help on using the changeset viewer.