yaffs Added another test to direct/timothy_tests/threading
[yaffs2.git] / direct / timothy_tests / linux_tests / mkdir_link.c
diff --git a/direct/timothy_tests/linux_tests/mkdir_link.c b/direct/timothy_tests/linux_tests/mkdir_link.c
new file mode 100644 (file)
index 0000000..d466958
--- /dev/null
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include <errno.h>
+
+
+int main()
+{
+       int output=0;
+       int error_code =0 ;
+       output =symlink("timothy/home/tests/new_dir" "timothy/home/test/new_dir_link");
+       output=mkdir("timothy/home/test/new_dir_link" );
+       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;
+}