Changeset 4f088ae in rtems


Ignore:
Timestamp:
Aug 9, 2001, 10:02:20 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bd520203
Parents:
ecb5f95
Message:

2001-08-09 Fernando-Ruiz Casas <correo@…>

  • psxchroot01/.cvsignore, psxchroot01/Makefile.am, psxchroot01/main.c, psxchroot01/psxchroot01.scn, psxchroot01/test.c: Implemented the psxchroot01 test.
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/ChangeLog

    recb5f95 r4f088ae  
     12001-08-09      Fernando-Ruiz Casas <correo@fernando-ruiz.com>
     2
     3        * psxchroot01/.cvsignore, psxchroot01/Makefile.am, psxchroot01/main.c,
     4        psxchroot01/psxchroot01.scn, psxchroot01/test.c:  Implemented the
     5        psxchroot01 test.
     6
    172001-05-25      Joel Sherrill <joel@OARcorp.com>
    28
  • c/src/tests/psxtests/psxchroot01/psxchroot01.scn

    recb5f95 r4f088ae  
    1 *** CHROOT TEST ***
    2 FILL ME IN ONCE TEST IS SATISFACTORY
    3 *** END OF CHROOT TEST ***
     1
     2
     3*** CHROOT01 TEST ***
     4SUCCESS on /one/one.test
     5SUCCESS on /two/two.test
     6Reset the private environment
     7SUCCESS on /one/one.test
     8SUCCESS on /two/two.test
     9*** END OF CHROOT01 TEST ***
  • c/src/tests/psxtests/psxchroot01/test.c

    recb5f95 r4f088ae  
    7878#touch /one/two/two.test
    7979#chroot /one
    80 #if !fileexits(/one/one.test) echo "FAIL"
    81 #if fileexits(/two/two.test) echo "SUCCESSFUL"
     80#if !fileexists(/one/one.test) echo "SUCCESSFUL"
     81#if fileexists(/two/two.test) echo "SUCCESSFUL"
    8282#rtems_set_private_env() ! reset at the global environment
    83 #if !fileexits(/one/one.test) echo "SUCESSFUL"
    84 #if fileexits(/two/two.test) echo "FAIL"
     83#if fileexists(/one/one.test) echo "SUCESSFUL"
     84#if !fileexists(/two/two.test) echo "SUCCESSFUL"
    8585*/
    8686
     
    112112   
    113113  status = fileexists( "/one/one.test" );
    114   printf( "%s on /one/one.test\n", (!status) ? "SUCCESS" : "FAILURE" );
     114  printf( "%s on /one/one.test\n", ( status) ? "SUCCESS" : "FAILURE" );
    115115
    116116  status = fileexists( "/two/two.test" );
    117   printf( "%s on /two/two.test\n", (status) ? "SUCCESS" : "FAILURE" );
     117  printf( "%s on /two/two.test\n", (!status) ? "SUCCESS" : "FAILURE" );
    118118
    119119  printf( "*** END OF CHROOT01 TEST ***\n" );
  • testsuites/psxtests/ChangeLog

    recb5f95 r4f088ae  
     12001-08-09      Fernando-Ruiz Casas <correo@fernando-ruiz.com>
     2
     3        * psxchroot01/.cvsignore, psxchroot01/Makefile.am, psxchroot01/main.c,
     4        psxchroot01/psxchroot01.scn, psxchroot01/test.c:  Implemented the
     5        psxchroot01 test.
     6
    172001-05-25      Joel Sherrill <joel@OARcorp.com>
    28
  • testsuites/psxtests/psxchroot01/psxchroot01.scn

    recb5f95 r4f088ae  
    1 *** CHROOT TEST ***
    2 FILL ME IN ONCE TEST IS SATISFACTORY
    3 *** END OF CHROOT TEST ***
     1
     2
     3*** CHROOT01 TEST ***
     4SUCCESS on /one/one.test
     5SUCCESS on /two/two.test
     6Reset the private environment
     7SUCCESS on /one/one.test
     8SUCCESS on /two/two.test
     9*** END OF CHROOT01 TEST ***
  • testsuites/psxtests/psxchroot01/test.c

    recb5f95 r4f088ae  
    7878#touch /one/two/two.test
    7979#chroot /one
    80 #if !fileexits(/one/one.test) echo "FAIL"
    81 #if fileexits(/two/two.test) echo "SUCCESSFUL"
     80#if !fileexists(/one/one.test) echo "SUCCESSFUL"
     81#if fileexists(/two/two.test) echo "SUCCESSFUL"
    8282#rtems_set_private_env() ! reset at the global environment
    83 #if !fileexits(/one/one.test) echo "SUCESSFUL"
    84 #if fileexits(/two/two.test) echo "FAIL"
     83#if fileexists(/one/one.test) echo "SUCESSFUL"
     84#if !fileexists(/two/two.test) echo "SUCCESSFUL"
    8585*/
    8686
     
    112112   
    113113  status = fileexists( "/one/one.test" );
    114   printf( "%s on /one/one.test\n", (!status) ? "SUCCESS" : "FAILURE" );
     114  printf( "%s on /one/one.test\n", ( status) ? "SUCCESS" : "FAILURE" );
    115115
    116116  status = fileexists( "/two/two.test" );
    117   printf( "%s on /two/two.test\n", (status) ? "SUCCESS" : "FAILURE" );
     117  printf( "%s on /two/two.test\n", (!status) ? "SUCCESS" : "FAILURE" );
    118118
    119119  printf( "*** END OF CHROOT01 TEST ***\n" );
Note: See TracChangeset for help on using the changeset viewer.