Changeset c2f9b97 in rtems for testsuites/psxtests/psx13


Ignore:
Timestamp:
Dec 3, 1998, 10:41:57 PM (21 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
0422a7a5
Parents:
5b8e885d
Message:

Cleaned up test.
Updated scn files to match present expected test output.

Location:
testsuites/psxtests/psx13
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/psx13/psx13.scn

    r5b8e885d rc2f9b97  
     1
     2Files initialized successfully.
     3Testing device_lseek()... Success.
     4Testing dup()............ Success.
     5Testing dup2()........... Success.
     6Testing fdatasync()...... Success.
     7Testing umask().......... Success.
     8Testing utime().......... Success.
     9Testing pipe()........... Success.
     10Testing fsync().......... Success.
     11Testing pathconf()....... Success.
     12Testing fpathconf()...... Success.
     13
     14
     15*** END OF TEST PSX13 ***
  • testsuites/psxtests/psx13/test.c

    r5b8e885d rc2f9b97  
    162162  if (fd2 != -1) {
    163163
    164     fcntl(F_SETFL, fd1, O_APPEND);
    165     flags = fcntl(F_GETFL, fd2);
     164    fcntl(fd1, F_SETFL, O_APPEND);
     165    flags = fcntl(fd2, F_GETFL);
    166166
    167167    close (fd1);
     
    215215  if (error != -1) {
    216216
    217     fcntl(F_SETFL, fd1, O_APPEND);
    218     flags = fcntl(F_GETFL, fd1);
     217    fcntl(fd1, F_SETFL, O_APPEND);
     218    flags = fcntl(fd1, F_GETFL);
    219219
    220220    flags = (flags & O_APPEND);
     
    601601{
    602602  if (InitFiles() == TRUE) {
    603     puts ("\nFiles initialized successfully.\n");
    604 
    605     puts ("Testing device_lseek()...");
     603    printf ("\nFiles initialized successfully.\n");
     604
     605    printf ("Testing device_lseek()... ");
    606606    if (DeviceLSeekTest() == TRUE)
    607       puts ("Success.\n");
    608     else
    609       puts ("Failed!!!\n");
    610 
    611     puts ("Testing dup()...");
     607      printf ("Success.\n");
     608    else
     609      printf ("Failed!!!\n");
     610
     611    printf ("Testing dup()............ ");
    612612    if (DupTest() == TRUE)
    613       puts ("Success.\n");
    614     else
    615       puts ("Failed!!!\n");
     613      printf ("Success.\n");
     614    else
     615      printf ("Failed!!!\n");
    616616   
    617     puts ("Testing dup2()...");
     617    printf ("Testing dup2()........... ");
    618618    if (Dup2Test() == TRUE)
    619       puts ("Success.\n");
    620     else
    621       puts ("Failed!!!\n");
    622 
    623     puts ("Testing fdatasync()...");
     619      printf ("Success.\n");
     620    else
     621      printf ("Failed!!!\n");
     622
     623    printf ("Testing fdatasync()...... ");
    624624    if (FDataSyncTest() == TRUE)
    625       puts ("Success.\n");
    626     else
    627       puts ("Failed!!!\n");
    628 
    629     puts ("Testing umask()...");
     625      printf ("Success.\n");
     626    else
     627      printf ("Failed!!!\n");
     628
     629    printf ("Testing umask().......... ");
    630630    if (UMaskTest() == TRUE)
    631       puts ("Success.\n");
    632     else
    633       puts ("Failed!!!\n");
    634 
    635    puts ("Testing utime()...");
     631      printf ("Success.\n");
     632    else
     633      printf ("Failed!!!\n");
     634
     635   printf ("Testing utime().......... ");
    636636    if (UTimeTest() == TRUE)
    637       puts ("Success.\n");
    638     else
    639       puts ("Failed!!!\n");
    640 
    641    puts ("Testing pipe()...");
     637      printf ("Success.\n");
     638    else
     639      printf ("Failed!!!\n");
     640
     641   printf ("Testing pipe()........... ");
    642642    if (PipeTest() == TRUE)
    643       puts ("Success.\n");
    644     else
    645       puts ("Failed!!!\n");
    646 
    647    puts ("Testing fsync()...");
     643      printf ("Success.\n");
     644    else
     645      printf ("Failed!!!\n");
     646
     647   printf ("Testing fsync().......... ");
    648648    if (FSyncTest() == TRUE)
    649       puts ("Success.\n");
    650     else
    651       puts ("Failed!!!\n");
    652 
    653    puts ("Testing pathconf()...");
     649      printf ("Success.\n");
     650    else
     651      printf ("Failed!!!\n");
     652
     653   printf ("Testing pathconf()....... ");
    654654    if (PathConfTest() == TRUE)
    655       puts ("Success.\n");
    656     else
    657       puts ("Failed!!!\n");
     655      printf ("Success.\n");
     656    else
     657      printf ("Failed!!!\n");
    658658 
    659    puts ("Testing fpathconf()...");
     659   printf ("Testing fpathconf()...... ");
    660660    if (FPathConfTest() == TRUE)
    661       puts ("Success.\n");
    662     else
    663       puts ("Failed!!!\n");
     661      printf ("Success.\n");
     662    else
     663      printf ("Failed!!!\n");
    664664  }
    665665
    666666
    667667  else
    668     puts ("\n\nError opening files for write!!!!\n");
    669 
    670   puts( "\n\n*** XXX ***" );
    671 
    672   puts( "\n\n*** END OF TEST PSX13 ***" );
     668    printf ("\n\nError opening files for write!!!!\n");
     669
     670  printf( "\n\n*** END OF TEST PSX13 ***" );
    673671  exit(0);
    674672}
Note: See TracChangeset for help on using the changeset viewer.