summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests/fssymlink
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-02 14:24:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2011-08-02 14:24:59 +0000
commit6fed43eabc0e78606cf80439c536a00be18fd743 (patch)
treef74fea0e1e6b46a7acea595ad70131a6b25f34df /testsuites/fstests/fssymlink
parent2011-08-02 Ricardo Aguirre <el.mastin@ymail.com> (diff)
downloadrtems-6fed43eabc0e78606cf80439c536a00be18fd743.tar.bz2
2011-08-02 Xiang Cui <medivhc@gmail.com>
* configure.ac, fserror/test.c, fslink/test.c, fspermission/test.c, fsrdwr/init.c, fssymlink/test.c, fstime/test.c, mdosfs_support/fs_config.h, mdosfs_support/fs_support.c, mimfs_support/fs_support.c, mrfs_support/fs_config.h, support/fstest.h, support/fstest_support.c, support/ramdisk_support.c, support/ramdisk_support.h: Perform first phase of clean up.
Diffstat (limited to 'testsuites/fstests/fssymlink')
-rw-r--r--testsuites/fstests/fssymlink/test.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/testsuites/fstests/fssymlink/test.c b/testsuites/fstests/fssymlink/test.c
index 387a210844..15c878797d 100644
--- a/testsuites/fstests/fssymlink/test.c
+++ b/testsuites/fstests/fssymlink/test.c
@@ -24,7 +24,7 @@
#include "fstest.h"
/*
- * Test the function of symlink
+ * Test the function of symlink
*/
void symlink_test01(void )
@@ -37,7 +37,7 @@ void symlink_test01(void )
struct stat statbuf;
size_t len=strlen(file01);
size_t name_len;
-
+
printf("Create a file named %s\n",file01);
fd=creat(file01,0777);
@@ -58,7 +58,7 @@ void symlink_test01(void )
rtems_test_assert(S_ISLNK(statbuf.st_mode));
rtems_test_assert(len==statbuf.st_size);
-
+
puts("call readlink ");
name_len=readlink(symlink_file01,name,sizeof(name)-1);
rtems_test_assert(name_len!=-1);
@@ -67,7 +67,7 @@ void symlink_test01(void )
puts(name);
puts("Unlink the file");
-
+
status=unlink(file01);
rtems_test_assert(status==0);
@@ -75,7 +75,7 @@ void symlink_test01(void )
rtems_test_assert(status==0);
rtems_test_assert(S_ISLNK(statbuf.st_mode));
rtems_test_assert(len==statbuf.st_size);
-
+
puts("call readlink ");
name_len=readlink(symlink_file01,name,sizeof(name)-1);
rtems_test_assert(name_len!=-1);
@@ -86,7 +86,7 @@ void symlink_test01(void )
printf("Create a dir named %s\n",file01);
status=mkdir (file01,0777);
-
+
printf("Create a symlink named %s to %s\n",symlink_file01,file01);
status=symlink(file01,symlink_file01);
rtems_test_assert(status==0);
@@ -96,7 +96,7 @@ void symlink_test01(void )
rtems_test_assert(S_ISLNK(statbuf.st_mode));
rtems_test_assert(len==statbuf.st_size);
-
+
puts("call readlink ");
name_len=readlink(symlink_file01,name,sizeof(name)-1);
rtems_test_assert(name_len!=-1);
@@ -141,7 +141,7 @@ void symlink_loop_error_test(void )
rtems_test_assert(status==0);
status=symlink(file02,file01);
rtems_test_assert(status==0);
-
+
EXPECT_ERROR(ELOOP,creat,path,mode);
EXPECT_ERROR(ELOOP,open,path,O_CREAT|O_WRONLY,mode);