Ignore:
Timestamp:
May 29, 2012, 10:26:45 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Children:
486f8b84
Parents:
45ada30 (diff), 847ad44 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'upstream'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psxmount/test.c

    r45ada30 r246e23c  
    315315  rtems_test_assert( status == 0 );
    316316
     317  printf("unmount of /c/y/my_mount_point should fail with EBUSY\n");
     318  status = unmount( "/c/y/my_mount_point" );
     319  rtems_test_assert( status == -1 );
     320  rtems_test_assert( errno == EBUSY );
     321
     322  status = chdir( "/" );
     323  rtems_test_assert( status == 0 );
     324
     325  printf("chroot to /c/y/my_mount_point\n");
     326  status = chroot( "/c/y/my_mount_point" );
     327  rtems_test_assert( status == 0 );
     328
     329  printf("unmount of . should fail with EBUSY\n");
     330  status = unmount( "." );
     331  rtems_test_assert( status == -1 );
     332  rtems_test_assert( errno == EBUSY );
     333
     334  /*
     335   * Chdir to root and verify we unmounted the file system now.
     336   */
     337
     338  printf("chroot to / and verify we can unmount /c/y/my_mount_point\n");
     339  status = chroot( "/" );
     340  rtems_test_assert( status == 0 );
     341
    317342  printf("unmount of /c/y/my_mount_point\n");
    318343  status = unmount( "/c/y/my_mount_point" );
    319   rtems_test_assert( status == 0 );
    320 
    321   printf("chdir to .. should fail with ENXIO\n");
    322   status = chdir( ".." );
    323   rtems_test_assert( status == -1 );
    324   rtems_test_assert( errno == ENXIO );
    325 
    326   /*
    327    * Chdir to root and verify we unmounted the file system now.
    328    */
    329 
    330   printf("chdir to / and verify we can unmount /c/y/my_mount_point\n");
    331   status = chdir( "/" );
    332344  rtems_test_assert( status == 0 );
    333345
     
    377389  rtems_test_assert( directory );
    378390
     391  printf("close %s\n", my_sub_fs_dir );
     392  status = closedir( directory );
     393  rtems_test_assert( status == 0 );
     394
    379395  printf("mkdir %s should fail with EEXIST\n", my_sub_fs_dir );
    380396  status = mkdir( my_sub_fs_dir, S_IRWXU );
     
    384400  printf("unmount %s\n", mount_point );
    385401  status = unmount( mount_point );
    386   rtems_test_assert( status == 0 );
    387 
    388   printf("close %s\n", my_sub_fs_dir );
    389   status = closedir( directory );
    390402  rtems_test_assert( status == 0 );
    391403
Note: See TracChangeset for help on using the changeset viewer.