yaffs Added another test to direct/timothy_tests/threading
[yaffs2.git] / direct / timothy_tests / linux_tests / rename.c
diff --git a/direct/timothy_tests/linux_tests/rename.c b/direct/timothy_tests/linux_tests/rename.c
new file mode 100644 (file)
index 0000000..9c40c2f
--- /dev/null
@@ -0,0 +1,17 @@
+#include <stdio.h>
+#include <errno.h>
+
+
+int main()
+{
+       int output=0;
+       int error_code =0 ;
+       output=rename( "/home/timothy/test/cat/","/home/timothy/test/dog/");
+       printf("output %d\n",output);
+       if (output <0 ) {
+               error_code = errno;
+               printf("error code %d\n",error_code);
+               printf("Error description is : %s\n",strerror(errno));
+       }
+       return 0;
+}