Changeset be366508 in rtems


Ignore:
Timestamp:
May 11, 2012, 11:23:11 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a26ea56d
Parents:
25f814c
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/12 11:23:11)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/11/12 11:58:44)
Message:

fstests/fsrdwr: Fix assertions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsrdwr/init.c

    r25f814c rbe366508  
    9595   */
    9696  fd = open (name01, O_WRONLY);
    97   rtems_test_assert (fd != -1);
     97  rtems_test_assert (fd >= 0);
    9898
    9999  n = write (fd, databuf, len);
     
    114114
    115115  fd = open (name01, O_RDONLY);
    116   rtems_test_assert (fd != -1);
     116  rtems_test_assert (fd >= 0);
    117117  n = read (fd, readbuf, len);
    118118  rtems_test_assert (n == len);
     
    143143   */
    144144  fd = open (name01, O_RDONLY);
    145   rtems_test_assert (fd != -1);
     145  rtems_test_assert (fd >= 0);
    146146  n = read (fd, readbuf, len);
    147147  rtems_test_assert (n == len);
     
    196196  rtems_test_assert (status == 0);
    197197  fd = open (name02, O_RDONLY);
    198   rtems_test_assert (fd != -1);
     198  rtems_test_assert (fd >= 0);
    199199
    200200  status = close (fd);
     
    256256   */
    257257  fd = open (name01, O_WRONLY);
    258   rtems_test_assert (fd != -1);
     258  rtems_test_assert (fd >= 0);
    259259  n = write (fd, databuf, len);
    260260  rtems_test_assert (n == len);
     
    273273  rtems_test_assert (readbuf);
    274274  fd = open (name01, O_RDONLY);
    275   rtems_test_assert (fd != -1);
     275  rtems_test_assert (fd >= 0);
    276276  n = read (fd, readbuf, len / 2);
    277277  rtems_test_assert (n == len / 2);
     
    315315  puts ("Create a new file");
    316316  fd = creat (name01, mode);
    317   rtems_test_assert (fd != -1);
     317  rtems_test_assert (fd >= 0);
    318318
    319319  pos = lseek (fd, 0, SEEK_CUR);
     
    330330  for (i = 0; i < 10; i++) {
    331331    n = write (fd, databuf, len);
    332     rtems_test_assert (n != -1);
     332    rtems_test_assert (n == (ssize_t) len);
    333333    total_written += n;
    334334  }
Note: See TracChangeset for help on using the changeset viewer.