summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-10 17:34:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-08-10 17:34:12 +0000
commitce656dff3ac416a5308db95ec92b4486068f2c92 (patch)
tree0effeb5ebccd759011df2d2a7613721ec504dc7a /testsuites/sptests
parent2010-08-10 Bharath Suri <bharath.s.jois@gmail.com> (diff)
downloadrtems-ce656dff3ac416a5308db95ec92b4486068f2c92.tar.bz2
2010-08-10 Bharath Suri <bharath.s.jois@gmail.com>
PR 1663/testing * spmkdir/init.c: New cases to get the error path in rtems_mkdir routine.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r--testsuites/sptests/ChangeLog6
-rw-r--r--testsuites/sptests/spmkdir/init.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 31d6f3e01a..8c26ec3d79 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-10 Bharath Suri <bharath.s.jois@gmail.com>
+
+ PR 1663/testing
+ * spmkdir/init.c: New cases to get the error path in rtems_mkdir
+ routine.
+
2010-08-09 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1661/testing
diff --git a/testsuites/sptests/spmkdir/init.c b/testsuites/sptests/spmkdir/init.c
index 4b11a22981..343c2f0db4 100644
--- a/testsuites/sptests/spmkdir/init.c
+++ b/testsuites/sptests/spmkdir/init.c
@@ -64,6 +64,12 @@ static rtems_task Init(rtems_task_argument argument)
test_mkdir("a/b/c/4", S_IRWXO, 0);
test_mkdir("a/b", omode, 0);
test_mkdir("a", omode, 0);
+ test_mkdir("a/b/x", S_IRUSR, 0);
+ test_mkdir("a/b/x/y", S_IRUSR, -1);
+
+ rv = mknod("a/n", S_IRWXU | S_IFREG, 0LL);
+
+ test_mkdir("a/n/b", S_IRUSR, -1);
rv = open ("b", O_CREAT | O_RDONLY, omode);
rtems_test_assert(rv >= 0);