forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user