1 |
2 |
@type trace |
3 |
|
4 |
5 |
6 |
7 |
|
8 |
9 |
|
10 |
open_close "/f1.txt" [O_RDONLY;O_CREAT] 0o666 |
11 |
Tau |
12 |
RV_none |
13 |
|
14 |
15 |
|
16 |
unlink "/f1.txt" |
17 |
Tau |
18 |
RV_none |
19 |
stat "/f1.txt" |
20 |
Tau |
21 |
ENOENT |
22 |
|
23 |
24 |
|
25 |
open_close "/f1.txt" [O_RDONLY;O_CREAT] 0o666 |
26 |
Tau |
27 |
RV_none |
28 |
link "/f1.txt" "/f1_hl.txt" |
29 |
Tau |
30 |
RV_none |
31 |
unlink "f1.txt" |
32 |
Tau |
33 |
RV_none |
34 |
|
35 |
stat "/f1_hl.txt" |
36 |
Tau |
37 |
RV_stat {
st_dev | = | 42; |
st_ino | = |
469688; |
st_kind | = |
S_IFREG; |
st_perm | = |
0o644; |
st_nlink | = | 2; |
st_uid | = |
0; |
st_gid | = |
0; |
st_rdev | = | 0; |
st_size | = |
0; |
} |
|
THE SPEC ASSERTS THE STATE SET IS EMPTY |
The spec permitted:
RV_stat {
st_dev | = | 2049; |
st_ino | = |
2; |
st_kind | = |
S_IFREG; |
st_perm | = |
0o644; |
st_nlink | = | 1; |
st_uid | = |
0; |
st_gid | = |
0; |
st_rdev | = | 0; |
st_size | = |
0; |
}
|
expected st_nlink 1 but got st_nlink 2 |
|
38 |
|
39 |
40 |
|
41 |
unlink "/f1_hl.txt" |
42 |
Tau |
43 |
RV_none |
44 |
stat "/f1_hl.txt" |
45 |
Tau |
46 |
ENOENT |
47 |
|
48 |
49 |
|
50 |
open_close "/f1.txt" [O_RDONLY;O_CREAT] 0o666 |
51 |
Tau |
52 |
RV_none |
53 |
link "/f1.txt" "/f1_hl.txt" |
54 |
Tau |
55 |
RV_none |
56 |
unlink "f1_hl.txt" |
57 |
Tau |
58 |
RV_none |
59 |
|
60 |
stat "/f1.txt" |
61 |
Tau |
62 |
RV_stat {
st_dev | = | 42; |
st_ino | = |
469689; |
st_kind | = |
S_IFREG; |
st_perm | = |
0o644; |
st_nlink | = | 1; |
st_uid | = |
0; |
st_gid | = |
0; |
st_rdev | = | 0; |
st_size | = |
0; |
} |
63 |
|
64 |
65 |
66 |
|
67 |
68 |
69 |
70 |
71 |
72 |
73 |
|
74 |
|