2011-02-14 Joel Sherrill <joel.sherrilL@OARcorp.com>

* psximfs02/init.c: Disable EPERM test which does not work when POSIX
	is disabled.
This commit is contained in:
Joel Sherrill
2011-02-14 20:21:58 +00:00
parent 261074795a
commit 9c68638dd9
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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.
+5
View File
@@ -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 );