summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxchroot01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-09 22:02:20 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-08-09 22:02:20 +0000
commit4f088aee006bedfa1c176faff49cad0b45dfba98 (patch)
tree75ed69764b163e53479ddd505b72b54d41d2dbdc /testsuites/psxtests/psxchroot01
parent2001-08-09 Keith Outwater <vac4050@cae597.rsc.raytheon.com> (diff)
downloadrtems-4f088aee006bedfa1c176faff49cad0b45dfba98.tar.bz2
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.
Diffstat (limited to 'testsuites/psxtests/psxchroot01')
-rw-r--r--testsuites/psxtests/psxchroot01/psxchroot01.scn12
-rw-r--r--testsuites/psxtests/psxchroot01/test.c12
2 files changed, 15 insertions, 9 deletions
diff --git a/testsuites/psxtests/psxchroot01/psxchroot01.scn b/testsuites/psxtests/psxchroot01/psxchroot01.scn
index 38539d062b..519f2735b8 100644
--- a/testsuites/psxtests/psxchroot01/psxchroot01.scn
+++ b/testsuites/psxtests/psxchroot01/psxchroot01.scn
@@ -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 ***
diff --git a/testsuites/psxtests/psxchroot01/test.c b/testsuites/psxtests/psxchroot01/test.c
index cc759a2dc2..da93a96f05 100644
--- a/testsuites/psxtests/psxchroot01/test.c
+++ b/testsuites/psxtests/psxchroot01/test.c
@@ -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);