Changeset 377c0cb0 in rtems


Ignore:
Timestamp:
May 17, 2010, 8:34:55 AM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10, 4.11, master
Children:
514a3fe
Parents:
c8522fd
Message:

2010-05-17 Sebastian Huber <sebastian.huber@…>

PR 1433/cpukit

  • block08/bdbuf_tests.c: Enabled tests 1.1, 1.2 and 1.3.
  • block08/bdbuf_test1_1.c, block08/bdbuf_test1_2.c, block08/bdbuf_test1_3.c: Use RTEMS_IO_ERROR instead of RTEMS_NO_MEMORY.
Location:
testsuites/libtests
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    rc8522fd r377c0cb0  
     12010-05-17      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        PR 1433/cpukit
     4        * block08/bdbuf_tests.c: Enabled tests 1.1, 1.2 and 1.3.
     5        * block08/bdbuf_test1_1.c, block08/bdbuf_test1_2.c,
     6        block08/bdbuf_test1_3.c: Use RTEMS_IO_ERROR instead of
     7        RTEMS_NO_MEMORY.
     8
    192010-05-03      Sebastian Huber <Sebastian.Huber@embedded-brains.de>
    210
  • testsuites/libtests/block08/bdbuf_test1_1.c

    rc8522fd r377c0cb0  
    7878     * from device driver via asynchonous notification.
    7979     * On this step device driver returns 0 from ioctl() call,
    80      * but notification callback is called with RTEMS_NO_MEMORY status.
     80     * but notification callback is called with RTEMS_IO_ERROR status.
    8181     */
    8282    WAIT_DRV_MSG(&msg);
    83     SEND_DRV_MSG(0, 0, RTEMS_NO_MEMORY, EFAULT);
     83    SEND_DRV_MSG(0, 0, RTEMS_IO_ERROR, EFAULT);
    8484
    8585    WAIT_THREAD_SYNC(1);
     
    131131    /*
    132132     * Step 5-6:
    133      * Read operation fails with RTEMS_NO_MEMORY code.
     133     * Read operation fails with RTEMS_IO_ERROR code.
    134134     * The function shall not update user pointer.
    135135     */
    136136    rc = rtems_bdbuf_read(test_dev, TEST_BLK_NUM, &bd2);
    137     if (rc != RTEMS_NO_MEMORY || bd2 != NULL)
     137    if (rc != RTEMS_IO_ERROR || bd2 != NULL)
    138138    {
    139139        TEST_FAILED();
  • testsuites/libtests/block08/bdbuf_test1_2.c

    rc8522fd r377c0cb0  
    7070     * Unblock thread #1 by reporting data transfer result.
    7171     */
    72     SEND_DRV_MSG(0, 0, RTEMS_NO_MEMORY, EFAULT);
     72    SEND_DRV_MSG(0, 0, RTEMS_IO_ERROR, EFAULT);
    7373
    7474    /*
     
    9292     * Report an error again from the driver.
    9393     */
    94     SEND_DRV_MSG(0, 0, RTEMS_NO_MEMORY, EFAULT);
     94    SEND_DRV_MSG(0, 0, RTEMS_IO_ERROR, EFAULT);
    9595
    9696    /*
     
    120120     */
    121121    rc = rtems_bdbuf_read(test_dev, TEST_BLK_NUM, &bd);
    122     if (rc != RTEMS_NO_MEMORY || bd != NULL)
     122    if (rc != RTEMS_IO_ERROR || bd != NULL)
    123123    {
    124124        TEST_FAILED();
     
    147147     * number, bdbuf library should ask for re-read data again.
    148148     * But main test task will agin tell device driver to return
    149      * RTEMS_NO_MEMORY data transfer result.
     149     * RTEMS_IO_ERROR data transfer result.
    150150     */
    151151    rc = rtems_bdbuf_read(test_dev, TEST_BLK_NUM, &bd);
    152     if (rc != RTEMS_NO_MEMORY || bd != NULL)
     152    if (rc != RTEMS_IO_ERROR || bd != NULL)
    153153    {
    154154        TEST_FAILED();
  • testsuites/libtests/block08/bdbuf_test1_3.c

    rc8522fd r377c0cb0  
    7171     * Unblock thread #1 by reporting erroneous data transfer result.
    7272     */
    73     SEND_DRV_MSG(0, 0, RTEMS_NO_MEMORY, EFAULT);
     73    SEND_DRV_MSG(0, 0, RTEMS_IO_ERROR, EFAULT);
    7474
    7575    /*
     
    129129     */
    130130    rc = rtems_bdbuf_read(test_dev, TEST_BLK_NUM, &bd);
    131     if (rc != RTEMS_NO_MEMORY || bd != NULL)
     131    if (rc != RTEMS_IO_ERROR || bd != NULL)
    132132    {
    133133        TEST_FAILED();
  • testsuites/libtests/block08/bdbuf_tests.c

    rc8522fd r377c0cb0  
    2525    void (* main)(void);
    2626} bdbuf_tests[] = {
    27 #if 0
    2827    { bdbuf_test1_1_main },
    2928    { bdbuf_test1_2_main },
    3029    { bdbuf_test1_3_main },
    31 #endif
    3230    { bdbuf_test1_4_main },
    3331    { bdbuf_test1_5_main },
Note: See TracChangeset for help on using the changeset viewer.