@@ -40,7 +40,7 @@ fn test_fanotify_notifications() {
40
40
let [ event] = & group. read_events ( ) . unwrap ( ) [ ..] else {
41
41
panic ! ( "should have read exactly one event" ) ;
42
42
} ;
43
- assert ! ( event. has_compile_version ( ) ) ;
43
+ assert ! ( event. check_version ( ) ) ;
44
44
assert_eq ! ( event. mask, MaskFlags :: FAN_OPEN | MaskFlags :: FAN_CLOSE_WRITE ) ;
45
45
let fd = event. fd . as_ref ( ) . unwrap ( ) ;
46
46
let path = read_link ( format ! ( "/proc/self/fd/{}" , fd. as_raw_fd( ) ) ) . unwrap ( ) ;
@@ -55,7 +55,7 @@ fn test_fanotify_notifications() {
55
55
let [ event] = & group. read_events ( ) . unwrap ( ) [ ..] else {
56
56
panic ! ( "should have read exactly one event" ) ;
57
57
} ;
58
- assert ! ( event. has_compile_version ( ) ) ;
58
+ assert ! ( event. check_version ( ) ) ;
59
59
assert_eq ! (
60
60
event. mask,
61
61
MaskFlags :: FAN_OPEN
@@ -76,7 +76,7 @@ fn test_fanotify_notifications() {
76
76
let [ event] = & group. read_events ( ) . unwrap ( ) [ ..] else {
77
77
panic ! ( "should have read exactly one event" ) ;
78
78
} ;
79
- assert ! ( event. has_compile_version ( ) ) ;
79
+ assert ! ( event. check_version ( ) ) ;
80
80
assert_eq ! (
81
81
event. mask,
82
82
MaskFlags :: FAN_OPEN | MaskFlags :: FAN_CLOSE_NOWRITE
@@ -118,7 +118,7 @@ fn test_fanotify_responses() {
118
118
let [ event] = & group. read_events ( ) . unwrap ( ) [ ..] else {
119
119
panic ! ( "should have read exactly one event" ) ;
120
120
} ;
121
- assert ! ( event. has_compile_version ( ) ) ;
121
+ assert ! ( event. check_version ( ) ) ;
122
122
assert_eq ! ( event. mask, MaskFlags :: FAN_OPEN_PERM ) ;
123
123
let fd = event. fd . as_ref ( ) . unwrap ( ) ;
124
124
let path = read_link ( format ! ( "/proc/self/fd/{}" , fd. as_raw_fd( ) ) ) . unwrap ( ) ;
@@ -134,7 +134,7 @@ fn test_fanotify_responses() {
134
134
let [ event] = & group. read_events ( ) . unwrap ( ) [ ..] else {
135
135
panic ! ( "should have read exactly one event" ) ;
136
136
} ;
137
- assert ! ( event. has_compile_version ( ) ) ;
137
+ assert ! ( event. check_version ( ) ) ;
138
138
assert_eq ! ( event. mask, MaskFlags :: FAN_OPEN_PERM ) ;
139
139
let fd = event. fd . as_ref ( ) . unwrap ( ) ;
140
140
let path = read_link ( format ! ( "/proc/self/fd/{}" , fd. as_raw_fd( ) ) ) . unwrap ( ) ;
0 commit comments