mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
* psxchroot01/.cvsignore, psxchroot01/Makefile.am, psxchroot01/main.c, psxchroot01/psxchroot01.scn, psxchroot01/test.c: Implemented the psxchroot01 test.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
|
||||
|
||||
* psxchroot01/.cvsignore, psxchroot01/Makefile.am, psxchroot01/main.c,
|
||||
psxchroot01/psxchroot01.scn, psxchroot01/test.c: Implemented the
|
||||
psxchroot01 test.
|
||||
|
||||
2001-05-25 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* Added once version of psxchroot01 test for user review.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
*** CHROOT TEST ***
|
||||
FILL ME IN ONCE TEST IS SATISFACTORY
|
||||
*** END OF CHROOT TEST ***
|
||||
|
||||
|
||||
*** CHROOT01 TEST ***
|
||||
SUCCESS on /one/one.test
|
||||
SUCCESS on /two/two.test
|
||||
Reset the private environment
|
||||
SUCCESS on /one/one.test
|
||||
SUCCESS on /two/two.test
|
||||
*** END OF CHROOT01 TEST ***
|
||||
|
||||
@@ -77,11 +77,11 @@ int main(
|
||||
#touch /one/one.test
|
||||
#touch /one/two/two.test
|
||||
#chroot /one
|
||||
#if !fileexits(/one/one.test) echo "FAIL"
|
||||
#if fileexits(/two/two.test) echo "SUCCESSFUL"
|
||||
#if !fileexists(/one/one.test) echo "SUCCESSFUL"
|
||||
#if fileexists(/two/two.test) echo "SUCCESSFUL"
|
||||
#rtems_set_private_env() ! reset at the global environment
|
||||
#if !fileexits(/one/one.test) echo "SUCESSFUL"
|
||||
#if fileexits(/two/two.test) echo "FAIL"
|
||||
#if fileexists(/one/one.test) echo "SUCESSFUL"
|
||||
#if !fileexists(/two/two.test) echo "SUCCESSFUL"
|
||||
*/
|
||||
|
||||
printf( "\n\n*** CHROOT01 TEST ***\n" );
|
||||
@@ -111,10 +111,10 @@ int main(
|
||||
rtems_libio_set_private_env();
|
||||
|
||||
status = fileexists( "/one/one.test" );
|
||||
printf( "%s on /one/one.test\n", (!status) ? "SUCCESS" : "FAILURE" );
|
||||
printf( "%s on /one/one.test\n", ( status) ? "SUCCESS" : "FAILURE" );
|
||||
|
||||
status = fileexists( "/two/two.test" );
|
||||
printf( "%s on /two/two.test\n", (status) ? "SUCCESS" : "FAILURE" );
|
||||
printf( "%s on /two/two.test\n", (!status) ? "SUCCESS" : "FAILURE" );
|
||||
|
||||
printf( "*** END OF CHROOT01 TEST ***\n" );
|
||||
exit(0);
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
2001-08-09 Fernando-Ruiz Casas <correo@fernando-ruiz.com>
|
||||
|
||||
* psxchroot01/.cvsignore, psxchroot01/Makefile.am, psxchroot01/main.c,
|
||||
psxchroot01/psxchroot01.scn, psxchroot01/test.c: Implemented the
|
||||
psxchroot01 test.
|
||||
|
||||
2001-05-25 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* Added once version of psxchroot01 test for user review.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
*** CHROOT TEST ***
|
||||
FILL ME IN ONCE TEST IS SATISFACTORY
|
||||
*** END OF CHROOT TEST ***
|
||||
|
||||
|
||||
*** CHROOT01 TEST ***
|
||||
SUCCESS on /one/one.test
|
||||
SUCCESS on /two/two.test
|
||||
Reset the private environment
|
||||
SUCCESS on /one/one.test
|
||||
SUCCESS on /two/two.test
|
||||
*** END OF CHROOT01 TEST ***
|
||||
|
||||
@@ -77,11 +77,11 @@ int main(
|
||||
#touch /one/one.test
|
||||
#touch /one/two/two.test
|
||||
#chroot /one
|
||||
#if !fileexits(/one/one.test) echo "FAIL"
|
||||
#if fileexits(/two/two.test) echo "SUCCESSFUL"
|
||||
#if !fileexists(/one/one.test) echo "SUCCESSFUL"
|
||||
#if fileexists(/two/two.test) echo "SUCCESSFUL"
|
||||
#rtems_set_private_env() ! reset at the global environment
|
||||
#if !fileexits(/one/one.test) echo "SUCESSFUL"
|
||||
#if fileexits(/two/two.test) echo "FAIL"
|
||||
#if fileexists(/one/one.test) echo "SUCESSFUL"
|
||||
#if !fileexists(/two/two.test) echo "SUCCESSFUL"
|
||||
*/
|
||||
|
||||
printf( "\n\n*** CHROOT01 TEST ***\n" );
|
||||
@@ -111,10 +111,10 @@ int main(
|
||||
rtems_libio_set_private_env();
|
||||
|
||||
status = fileexists( "/one/one.test" );
|
||||
printf( "%s on /one/one.test\n", (!status) ? "SUCCESS" : "FAILURE" );
|
||||
printf( "%s on /one/one.test\n", ( status) ? "SUCCESS" : "FAILURE" );
|
||||
|
||||
status = fileexists( "/two/two.test" );
|
||||
printf( "%s on /two/two.test\n", (status) ? "SUCCESS" : "FAILURE" );
|
||||
printf( "%s on /two/two.test\n", (!status) ? "SUCCESS" : "FAILURE" );
|
||||
|
||||
printf( "*** END OF CHROOT01 TEST ***\n" );
|
||||
exit(0);
|
||||
|
||||
Reference in New Issue
Block a user