Changeset 3f42281e in rtems


Ignore:
Timestamp:
Jul 1, 2010, 9:15:07 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
5143105e
Parents:
962571e9
Message:

2010-07-01 Joel Sherrill <joel.sherrilL@…>

  • psxfile01/Makefile.am, psxfile01/psxfile01.scn, psxfile01/test.c: Remove tests which put NULL entries in file handlers.
Location:
testsuites/psxtests
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r962571e9 r3f42281e  
     12010-07-01      Joel Sherrill <joel.sherrilL@OARcorp.com>
     2
     3        * psxfile01/Makefile.am, psxfile01/psxfile01.scn, psxfile01/test.c:
     4        Remove tests which put NULL entries in file handlers.
     5
    162010-07-01      Bharath Suri <bharath.s.jois@gmail.com>
    27
  • testsuites/psxtests/psxfile01/Makefile.am

    r962571e9 r3f42281e  
    22## $Id$
    33##
    4 
    5 MANAGERS = all
    64
    75rtems_tests_PROGRAMS = psxfile01
     
    1311include $(top_srcdir)/../automake/compile.am
    1412include $(top_srcdir)/../automake/leaf.am
    15 
    16 psxfile01_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
    1713
    1814AM_CPPFLAGS += -I$(top_srcdir)/include
  • testsuites/psxtests/psxfile01/psxfile01.scn

    r962571e9 r3f42281e  
    1 Could not open '/dev/kqemu' - QEMU acceleration layer not activated: No such file or directory
    2 Initialized console on port COM1 9600-8-N-1
    3 
     1sparc-rtems4.11-run is /opt/rtems-4.11/bin/sparc-rtems4.11-run
    42
    53
     
    97....dev/
    108........console (device 0, 0)
     9........console_b (device 0, 1)
    1110***************       End of Dump        ***************
    1211stat of /dev/console
    13 ....st_dev     (0x0:0x0)
     12....st_dev     (0xfffe:0x0)
    1413....st_ino     3  may vary by small amount
    1514....mode  = 00020755
     
    7170attempt to rename across filesystem, with old path having a parent node
    7271attempt to rename tmp/joel to /imfs/test/joel
    73 Unmounting /imfs
    74 Mounting filesystem @ /imfs with no support for evalformake
    75 change directory to /imfs
    76 exercise _rename_r, with target on /imfs - expected ENOTSUP
    77 attempt to rename /tmp/joel to joel
    78 change directory to /
    79 Mounting filesystem @ /imfs with no support for rename
    80 creating directory /imfs/test
    81 creating directory /imfs/test/old_dir
    82 changing to /
    83 attempt to rename imfs/old_dir to imfs/new_dir
    84 unmounting /imfs
    8572End of _rename_r tests
    8673(10)the first write!!!
    8774
    8875stat( /tmp/joel ) returned
    89 ....st_dev     (0x0:0x0)
    90 ....st_ino     12  may vary by small amount
     76....st_dev     (0xfffe:0x0)
     77....st_ino     13  may vary by small amount
    9178....mode  = 00100700
    9279....nlink = 1
     
    120107That is likely to be bigger than the available RAM on many targets.
    121108stat( /tmp/joel ) returned
    122 ....st_dev     (0x0:0x0)
    123 ....st_ino     13  may vary by small amount
     109....st_dev     (0xfffe:0x0)
     110....st_ino     14  may vary by small amount
    124111....mode  = 00100700
    125112....nlink = 1
     
    133120stat of /tmp/j
    134121stat(/tmp/j) returned -1 (errno=2)
    135 ....st_dev     (0x0:0x0)
     122....st_dev     (0xfffe:0x0)
    136123....st_ino     3  may vary by small amount
    137124....mode  = 00020755
     
    151138(4) 26 characters written to the file
    152139(5) 26 characters written to the file
    153 ....st_dev     (0x0:0x0)
    154 ....st_ino     14  may vary by small amount
     140....st_dev     (0xfffe:0x0)
     141....st_ino     15  may vary by small amount
    155142....mode  = 00100644
    156143....nlink = 1
     
    167154This is call 4 to fprintf
    168155This is call 5 to fprintf
    169 ....st_dev     (0x0:0x0)
    170 ....st_ino     14  may vary by small amount
     156....st_dev     (0xfffe:0x0)
     157....st_ino     15  may vary by small amount
    171158....mode  = 00100644
    172159....nlink = 1
     
    182169....dev/
    183170........console (device 0, 0)
     171........console_b (device 0, 1)
    184172........tty/
    185 ............S3 (device 128, 255)
     173............S3 (device 255, 128)
    186174........test_console (device 0, 0)
    187175....etc/
     
    197185***************       End of Dump        ***************
    198186truncate /tmp/j to length of 40
    199 ....st_dev     (0x0:0x0)
    200 ....st_ino     14  may vary by small amount
     187....st_dev     (0xfffe:0x0)
     188....st_ino     15  may vary by small amount
    201189....mode  = 00100644
    202190....nlink = 1
     
    212200....dev/
    213201........console (device 0, 0)
     202........console_b (device 0, 1)
    214203........tty/
    215 ............S3 (device 128, 255)
     204............S3 (device 255, 128)
    216205........test_console (device 0, 0)
    217206....etc/
     
    233222....dev/
    234223........console (device 0, 0)
     224........console_b (device 0, 1)
    235225........tty/
    236 ............S3 (device 128, 255)
     226............S3 (device 255, 128)
    237227........test_console (device 0, 0)
    238228....etc/
  • testsuites/psxtests/psxfile01/test.c

    r962571e9 r3f42281e  
    118118
    119119}
    120 
    121 int no_evalformake_IMFS_initialize(
    122   rtems_filesystem_mount_table_entry_t *mt_entry,
    123   const void                           *data
    124 )
    125 {
    126    return IMFS_initialize_support(
    127      mt_entry,
    128      &IMFS_ops_no_evalformake,
    129      &IMFS_memfile_handlers,
    130      &IMFS_directory_handlers,
    131      &IMFS_fifo_handlers
    132    );
    133 }
    134 
    135 int no_rename_IMFS_initialize(
    136   rtems_filesystem_mount_table_entry_t *mt_entry,
    137   const void                           *data
    138 )
    139 {
    140    return IMFS_initialize_support(
    141      mt_entry,
    142      &IMFS_ops_no_rename,
    143      &IMFS_memfile_handlers,
    144      &IMFS_directory_handlers,
    145      &IMFS_fifo_handlers
    146    );
    147 }
    148 
    149120
    150121/*
     
    177148  rtems_time_of_day time;
    178149
    179   IMFS_ops_no_evalformake = IMFS_ops;
    180   IMFS_ops_no_rename = IMFS_ops;
    181 
    182   IMFS_ops_no_evalformake.fsmount_me_h = no_evalformake_IMFS_initialize;
    183   IMFS_ops_no_evalformake.evalformake_h = NULL;
    184 
    185   IMFS_ops_no_rename.fsmount_me_h = no_rename_IMFS_initialize;
    186   IMFS_ops_no_rename.rename_h = NULL;
    187 
    188   puts( "register no eval-for-make filesystem" );
    189   status = rtems_filesystem_register( "nefm", no_evalformake_IMFS_initialize );
    190   rtems_test_assert( status == 0 );
    191  
    192   puts( "register no rename filesystem" );
    193   status = rtems_filesystem_register( "nren", no_rename_IMFS_initialize );
    194   rtems_test_assert( status == 0 );
    195  
    196150  printf( "\n\n*** FILE TEST 1 ***\n" );
    197151
     
    450404  rtems_test_assert(status == -1);
    451405  rtems_test_assert(errno == EXDEV);
    452 
    453   puts("Unmounting /imfs");
    454   status = unmount("/imfs");
    455   rtems_test_assert(status == 0);
    456 
    457   puts("Mounting filesystem @ /imfs with no support for evalformake");
    458  
    459   status = mount("null", "/imfs", "nefm", RTEMS_FILESYSTEM_READ_WRITE, NULL);
    460   rtems_test_assert(status == 0);
    461 
    462   puts("change directory to /imfs");
    463   status = chdir("/imfs");
    464   rtems_test_assert(status == 0);
    465 
    466   puts("exercise _rename_r, with target on /imfs - expected ENOTSUP");
    467   puts("attempt to rename /tmp/joel to joel");
    468   status = _rename_r(NULL, "/tmp/joel", "joel");
    469   rtems_test_assert(status == -1);
    470   rtems_test_assert(errno == ENOTSUP);
    471 
    472   puts("change directory to /");
    473   status = chdir("/");
    474   rtems_test_assert(status == 0);
    475  
    476   status = unmount("/imfs");
    477   rtems_test_assert(status == 0);
    478 
    479 
    480   puts("Mounting filesystem @ /imfs with no support for rename");
    481   status = mount("null", "/imfs", "nren", RTEMS_FILESYSTEM_READ_WRITE, NULL);
    482   rtems_test_assert(status == 0);
    483 
    484   puts("creating directory /imfs/test");
    485   status = mkdir("/imfs/test", 0777);
    486   rtems_test_assert(status == 0);
    487 
    488   puts("creating directory /imfs/test/old_dir");
    489   status = mkdir("/imfs/test/old_dir", 0777);
    490   rtems_test_assert(status == 0);
    491 
    492   puts("changing to /");
    493   status = chdir("/");
    494  
    495   puts("attempt to rename imfs/old_dir to imfs/new_dir");
    496   status = _rename_r(NULL, "imfs/test/old_dir", "imfs/test/new_dir");
    497   rtems_test_assert(status == -1);
    498   rtems_test_assert(errno == ENOTSUP);
    499 
    500   puts("unmounting /imfs");
    501   status = unmount("/imfs");
    502   rtems_test_assert(status == 0);
    503406
    504407  puts("End of _rename_r tests");
Note: See TracChangeset for help on using the changeset viewer.