summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxreaddir/test.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2010-06-02 00:50:37 +0000
committerChris Johns <chrisj@rtems.org>2010-06-02 00:50:37 +0000
commit042a44210aa1003fe6673d962a3065a16dc3efc7 (patch)
tree8868600c9528cdcfd5f0e0105d9f51c220913aa1 /testsuites/psxtests/psxreaddir/test.c
parent2010-06-02 Chris Johns <chrisj@rtems.org> (diff)
downloadrtems-042a44210aa1003fe6673d962a3065a16dc3efc7.tar.bz2
2010-06-02 Chris Johns <chrisj@rtems.org>
* psxfile01/test.c, psxmount/test.c, psxreaddir/test.c, psxstat/test.c: Update to the new mount API.
Diffstat (limited to '')
-rw-r--r--testsuites/psxtests/psxreaddir/test.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/testsuites/psxtests/psxreaddir/test.c b/testsuites/psxtests/psxreaddir/test.c
index b224c2f9d5..142dfc3c26 100644
--- a/testsuites/psxtests/psxreaddir/test.c
+++ b/testsuites/psxtests/psxreaddir/test.c
@@ -183,8 +183,7 @@ int compare_descending( const struct dirent **a, const struct dirent **b )
void test_across_mount(void)
{
- rtems_filesystem_mount_table_entry_t *mt_entry;
- int status;
+ int status;
/*
* Verify Readdir works correctly over mount points.
@@ -196,15 +195,12 @@ void test_across_mount(void)
complete_printdir("/imfs" );
printf("Attempting to mount IMFS file system at /imfs \n");
status = mount(
- &mt_entry,
- &IMFS_ops,
+ "null",
+ "/imfs",
+ "imfs",
RTEMS_FILESYSTEM_READ_WRITE,
- NULL,
- "/imfs" );
+ NULL );
rtems_test_assert( status == 0 );
- if( mt_entry == NULL ){
- printf(" NULL mount table entry was returned\n");
- }
printf( "create /imfs/testdir and /imfs/testdir/testsubdir\n");
status = mkdir( "/imfs/testdir", 0777 );