summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-14 20:21:58 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-02-14 20:21:58 +0000
commit9c68638dd9ee00d62e7314a4479996c157de05c2 (patch)
treeabbc8f056743d9264049b53ac716c7fd19740c7e /testsuites
parent2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com> (diff)
downloadrtems-9c68638dd9ee00d62e7314a4479996c157de05c2.tar.bz2
2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* psximfs02/init.c: Disable EPERM test which does not work when POSIX is disabled.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/ChangeLog5
-rw-r--r--testsuites/psxtests/psximfs02/init.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index a4abd139ed..9d5fd4a62a 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
+
+ * psximfs02/init.c: Disable EPERM test which does not work when POSIX
+ is disabled.
+
2011-02-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* include/pmacros.h: Add PRIxblksize_t, PRIxblkcnt_t.
diff --git a/testsuites/psxtests/psximfs02/init.c b/testsuites/psxtests/psximfs02/init.c
index a9c79a0dd5..08d0d1f911 100644
--- a/testsuites/psxtests/psximfs02/init.c
+++ b/testsuites/psxtests/psximfs02/init.c
@@ -142,6 +142,7 @@ rtems_task Init(
status = seteuid( 10 );
rtems_test_assert( status == 0 );
+#if defined(RTEMS_POSIX_API)
puts( "Attempt chmod on /node -- expect EPERM" );
status = chmod( "/node", S_IRUSR );
rtems_test_assert( status == -1 );
@@ -151,6 +152,10 @@ rtems_task Init(
status = chown( "/node", 10, 10 );
rtems_test_assert( status == -1 );
rtems_test_assert( errno == EPERM );
+#else
+ puts( "Attempt chmod on /node -- EPERM only when POSIX enabled" );
+ puts( "Attempt chown on /node -- EPERM only when POSIX enabled" );
+#endif
puts( "Changing euid back to 0 [root]" );
status = seteuid( 0 );