Changeset 33ece501 in rtems


Ignore:
Timestamp:
Jun 28, 2010, 5:05:25 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
03a47f6e
Parents:
170f26a
Message:

2010-06-28 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, configure.ac, malloctest/init.c, termios03/init.c, termios03/termios03.scn: Handle some of the VKILL and VERASE cases.
Location:
testsuites/libtests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r170f26a r33ece501  
     12010-06-28      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * Makefile.am, configure.ac, malloctest/init.c, termios03/init.c,
     4        termios03/termios03.scn: Handle some of the VKILL and VERASE cases.
     5
    162010-06-28      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/libtests/Makefile.am

    r170f26a r33ece501  
    99SUBDIRS += bspcmdline01 cpuuse malloctest malloc02 malloc03 heapwalk \
    1010    putenvtest monitor monitor02 rtmonuse stackchk stackchk01 \
     11    termios termios01 termios02 termios03 termios04 termios05 \
    1112    termios termios01 termios02 termios03 termios04 \
    1213    rtems++ tztest block01 block02 block03 block04 block05 block06 block07 \
  • testsuites/libtests/configure.ac

    r170f26a r33ece501  
    6363termios03/Makefile
    6464termios04/Makefile
     65termios05/Makefile
    6566tztest/Makefile
    6667POSIX/Makefile
  • testsuites/libtests/malloctest/init.c

    r170f26a r33ece501  
    10461046  fatal_posix_service_status( sc, EINVAL, "posix_memalign alignment of 2" );
    10471047
    1048   if ( sizeof(int) == 4 )
    1049     maximumShift = 31;
    1050   else if ( sizeof(int) == 2 )
    1051     maximumShift = 15;
    1052   else {
    1053     printf( "Unsupported int size == %zu\n", sizeof(int) );
    1054     rtems_test_exit(0);
    1055   }
    1056   for ( i=2 ; i<maximumShift ; i++ ) {
    1057     printf( "posix_memalign - alignment of %" PRId32 " -- OK\n",
    1058       (int32_t) 1 << i );
    1059     sc = posix_memalign( &p1, 1 << i, 8 );
     1048  maximumShift = (sizeof(size_t) * CHAR_BIT) - 1;
     1049  for ( i=sizeof(void *) ; i<maximumShift ; i++ ) {
     1050    size_t alignment = 1 << i;
     1051    printf( "posix_memalign - alignment of %zd -- OK\n", alignment);
     1052    sc = posix_memalign( &p1, alignment, 8 );
    10601053    if ( sc == ENOMEM ) {
    1061       printf( "posix_memalign - ran out of memory trying %d\n", 1<<i );
     1054      printf( "posix_memalign - ran out of memory trying %zd\n", alignment );
    10621055      break;
    10631056    }
     
    10671060  }
    10681061  for ( ; i<maximumShift ; i++ ) {
    1069     printf( "posix_memalign - alignment of %" PRId32 " -- SKIPPED\n",
    1070       (int32_t) 1 << i );
     1062    size_t alignment = 1 << i;
     1063    printf( "posix_memalign - alignment of %zd -- SKIPPED\n", alignment);
    10711064  }
    10721065
  • testsuites/libtests/termios03/init.c

    r170f26a r33ece501  
    104104const char ExpectedInput_4[] = "cr\r.";
    105105const char ExpectedInput_5[] = "aBcDeFgH.\n";
     106const char ExpectedInput_6[] = "Testing VERASE\177.\n";
     107const char ExpectedInput_7[] = "Testing VKILL\025.\n";
     108const char ExpectedInput_8[] = "\177Testing VERASE in column 1.\n";
     109const char ExpectedInput_9[] = "\t tab \tTesting VKILL after tab.\025\n";
    106110
    107111rtems_task Init(
     
    126130  change_iflag( "Disable to lower case mapping on input", IUCLC, 0 );
    127131
     132  read_helper( Test_fd, ExpectedInput_6 );
     133  read_helper( Test_fd, ExpectedInput_7 );
     134  read_helper( Test_fd, ExpectedInput_8 );
     135  read_helper( Test_fd, ExpectedInput_9 );
     136
     137  puts( "" );
    128138  close_it();
    129139
  • testsuites/libtests/termios03/termios03.scn

    r170f26a r33ece501  
    525261 62 63 64 65 66 67 68 2e 0d 0a                |abcdefgh...     |
    5353Changing c_iflag to: Disable to lower case mapping on input
    54 close(/dev/test) - OK
     54
     55Reading (expected):
     5654 65 73 74 69 6e 67 20 56 45 52 41 53 45 7f 2e |Testing VERASE..|
     57Read 15 bytes from read(2)
     5854 65 73 74 69 6e 67 20 56 45 52 41 53 2e 0a    |Testing VERAS.. |
     59Echoed 20 characters
     6054 65 73 74 69 6e 67 20 56 45 52 41 53 45 08 20 |Testing VERASE. |
     6108 2e 0d 0a                                     |....            |
     62
     63Reading (expected):
     6454 65 73 74 69 6e 67 20 56 4b 49 4c 4c 15 2e    |Testing VKILL.. |
     65Read 2 bytes from read(2)
     662e 0a                                           |..              |
     67Echoed 55 characters
     6854 65 73 74 69 6e 67 20 56 4b 49 4c 4c 08 20 08 |Testing VKILL. .|
     6908 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..|
     7020 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. |
     7108 08 20 08 2e 0d 0a
     72
     73Reading (expected):
     747f 54 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 |.Testing VERASE |
     7569 6e 20 63 6f 6c 75 6d 6e 20 31 2e             |in column 1.    |
     76Read 28 bytes from read(2)
     7754 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i|
     786e 20 63 6f 6c 75 6d 6e 20 31 2e 0a             |n column 1..    |
     79Echoed 29 characters
     8054 65 73 74 69 6e 67 20 56 45 52 41 53 45 20 69 |Testing VERASE i|
     816e 20 63 6f 6c 75 6d 6e 20 31 2e 0d 0a          |n column 1...   |
     82
     83Reading (expected):
     8409 20 74 61 62 20 09 54 65 73 74 69 6e 67 20 56 |. tab .Testing V|
     854b 49 4c 4c 20 61 66 74 65 72 20 74 61 62 2e 15 |KILL after tab..|
     86Read 1 bytes from read(2)
     870a                                              |.               |
     88Echoed 140 characters
     8920 20 20 20 20 20 20 20 20 74 61 62 20 20 20 20 |         tab    |
     9054 65 73 74 69 6e 67 20 56 4b 49 4c 4c 20 61 66 |Testing VKILL af|
     9174 65 72 20 74 61 62 2e 08 20 08 08 20 08 08 20 |ter tab.. .. .. |
     9208 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .|
     9308 20 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |. .. .. .. .. ..|
     9420 08 08 20 08 08 20 08 08 20 08 08 20 08 08 20 | .. .. .. .. .. |
     9508 08 20 08 08 20 08 08 20 08 08 20 08 08 20 08 |.. .. .. .. .. .|
     9608 08 08 08 20 08 08 20 08 08 20 08 08 20 08 08 |.... .. .. .. ..|
     9720 08 08 08 08 08 08 08 08 08 0d 0a             | ...........    |
     98
     99close(/dev/test) - OK
    55100*** END OF TEST TERMIOS03 ***
Note: See TracChangeset for help on using the changeset viewer.