Changeset 5bd6123 in rtems


Ignore:
Timestamp:
Apr 5, 2011, 9:19:53 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
6503ac9
Parents:
142b3b8
Message:

2011-04-05 Sebastian Huber <sebastian.huber@…>

  • tar01/init.c: Fixed integer types.
Location:
testsuites/libtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/ChangeLog

    r142b3b8 r5bd6123  
     12011-04-05      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * tar01/init.c: Fixed integer types.
     4
    152011-03-14      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • testsuites/libtests/tar01/init.c

    r142b3b8 r5bd6123  
    6161void test_untar_from_file(void)
    6262{
    63   rtems_status_code  sc;
    6463  int                fd;
     64  int                rv;
     65  ssize_t            n;
    6566
    6667  puts( "Copy tar image to test.tar" );
     
    6970  rtems_test_assert( fd != -1 );
    7071
    71   sc = write( fd, TARFILE_START, TARFILE_SIZE );
    72   rtems_test_assert( sc == TARFILE_SIZE );
     72  n = write( fd, TARFILE_START, TARFILE_SIZE );
     73  rtems_test_assert( n == TARFILE_SIZE );
    7374  close( fd );
    7475
    7576  /* make a directory to untar it into */
    76   sc = mkdir( "/dest", 0777 );
    77   rtems_test_assert( !sc );
     77  rv = mkdir( "/dest", 0777 );
     78  rtems_test_assert( rv == 0 );
    7879
    79   sc = chdir( "/dest" );
    80   rtems_test_assert( !sc );
     80  rv = chdir( "/dest" );
     81  rtems_test_assert( rv == 0 );
    8182
    8283  /* Untar it */
    83   sc = Untar_FromFile( "/test.tar" );
     84  rv = Untar_FromFile( "/test.tar" );
    8485  printf("Untaring from file - ");
    85   if (sc != RTEMS_SUCCESSFUL) {
    86     printf ("error: untar failed: %s\n", rtems_status_text (sc));
     86  if (rv != UNTAR_SUCCESSFUL) {
     87    printf ("error: untar failed: %i\n", rv);
    8788    exit(1);
    8889  }
Note: See TracChangeset for help on using the changeset viewer.