source: rtems/testsuites/fstests/jffs2_fserror/jffs2_fserror.scn @ a136fb6

4.11
Last change on this file since a136fb6 was a136fb6, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 15, 2013 at 5:53:36 PM

testsuites: Add missing .scn files

  • Property mode set to 100644
File size: 4.0 KB
Line 
1
2
3*** FILE SYSTEM TEST ( JFFS2 ) ***
4Initializing filesystem JFFS2
5
6
7*** ERROR TEST ***
8Testing open       with arguments: "name01, O_CREAT | O_EXCL" EXPECT "EEXIST"
9PASS
10Testing mkdir      with arguments: "name01, mode"       EXPECT "EEXIST"
11PASS
12Testing open       with arguments: "name02, O_WRONLY"   EXPECT "EISDIR"
13PASS
14Testing open       with arguments: "name02, O_RDWR"     EXPECT "EISDIR"
15PASS
16Testing open       with arguments: "name, O_WRONLY"     EXPECT "ENOENT"
17PASS
18Testing open       with arguments: "\"\", O_WRONLY"     EXPECT "ENOENT"
19PASS
20Testing open       with arguments: "name03, O_WRONLY"   EXPECT "ENOENT"
21PASS
22Testing mkdir      with arguments: "name, mode"         EXPECT "ENOENT"
23PASS
24Testing mkdir      with arguments: "\"\", mode"         EXPECT "ENOENT"
25PASS
26Testing open       with arguments: "name, O_WRONLY"     EXPECT "ENOTDIR"
27PASS
28Testing mkdir      with arguments: "name, mode"         EXPECT "ENOTDIR"
29PASS
30Testing close      with arguments: "-1"                 EXPECT "EBADF"
31PASS
32Testing close      with arguments: "100"                EXPECT "EBADF"
33PASS
34Testing rename     with arguments: "name01, name"       EXPECT "EINVAL"
35FAIL   ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 156
36Testing rename     with arguments: "name03, name02"     EXPECT "EISDIR"
37FAIL   ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 164
38Testing rename     with arguments: "nonexistence, name01" EXPECT "ENOENT"
39FAIL   ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 171
40Testing rename     with arguments: "\"\", name01"       EXPECT "ENOENT"
41FAIL   ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 172
42Testing rename     with arguments: "name01, \"\""       EXPECT "ENOENT"
43PASS
44Testing rename     with arguments: "name, name03"       EXPECT "ENOTDIR"
45FAIL   ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 182
46Testing rename     with arguments: "name03, name"       EXPECT "ENOTDIR"
47PASS
48Testing rename     with arguments: "name02, name03"     EXPECT "ENOTDIR"
49FAIL   ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 184
50Testing truncate   with arguments: "file, -1"           EXPECT "EINVAL"
51PASS
52Testing rmdir      with arguments: "\"..\""             EXPECT "ENOTEMPTY"
53FAIL   ../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../fserror/test.c: 266
54Testing rmdir      with arguments: "\"tmp\""            EXPECT "ENOTEMPTY"
55PASS
56Testing rmdir      with arguments: "\".\""              EXPECT "EINVAL"
57PASS
58Testing rmdir      with arguments: "\"tmp/.\""          EXPECT "EINVAL"
59PASS
60Testing rmdir      with arguments: "\"\""               EXPECT "ENOENT"
61PASS
62Testing rmdir      with arguments: "nonexistence"       EXPECT "ENOENT"
63PASS
64Testing unlink     with arguments: "\"\""               EXPECT "ENOENT"
65PASS
66Testing unlink     with arguments: "nonexistence"       EXPECT "ENOENT"
67PASS
68Testing rmdir      with arguments: "\"tmp/file\""       EXPECT "ENOTDIR"
69PASS
70Testing unlink     with arguments: "\"tmp/file/dir\""   EXPECT "ENOTDIR"
71PASS
72Testing read       with arguments: "fd, readbuf, 10"    EXPECT "EBADF"
73PASS
74Testing read       with arguments: "100, readbuf, 10"   EXPECT "EBADF"
75PASS
76Testing write      with arguments: "fd, databuf, 10"    EXPECT "EBADF"
77PASS
78Testing write      with arguments: "fd, readbuf, 10"    EXPECT "EBADF"
79PASS
80Testing lseek      with arguments: "fd, -100, SEEK_END" EXPECT "EINVAL"
81PASS
82Testing lseek      with arguments: "fd, -100, SEEK_CUR" EXPECT "EINVAL"
83PASS
84Testing lseek      with arguments: "fd, -100, SEEK_SET" EXPECT "EINVAL"
85PASS
86Testing lseek      with arguments: "fd, huge, SEEK_END" EXPECT "EOVERFLOW"
87PASS
88Testing lseek      with arguments: "fd, huge, SEEK_CUR" EXPECT "EOVERFLOW"
89PASS
90Testing lseek      with arguments: "fd, 0, SEEK_SET"    EXPECT "EBADF"
91PASS
92*** END OF ERROR TEST ***
93
94
95Shutting down filesystem JFFS2
96*** END OF FILE SYSTEM TEST ( JFFS2 ) ***
Note: See TracBrowser for help on using the repository browser.