File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1087,7 +1087,7 @@ func TestIoctlFileDedupeRange(t *testing.T) {
1087
1087
// The first Info should be equal
1088
1088
if dedupe .Info [0 ].Status < 0 {
1089
1089
errno := unix .Errno (- dedupe .Info [0 ].Status )
1090
- if errno == unix .EINVAL {
1090
+ if errno == unix .EINVAL || errno == unix . EOPNOTSUPP {
1091
1091
t .Skip ("deduplication not supported on this filesystem" )
1092
1092
}
1093
1093
t .Errorf ("Unexpected error in FileDedupeRange: %s" , unix .ErrnoName (errno ))
@@ -1102,7 +1102,7 @@ func TestIoctlFileDedupeRange(t *testing.T) {
1102
1102
// The second Info should be different
1103
1103
if dedupe .Info [1 ].Status < 0 {
1104
1104
errno := unix .Errno (- dedupe .Info [1 ].Status )
1105
- if errno == unix .EINVAL {
1105
+ if errno == unix .EINVAL || errno == unix . EOPNOTSUPP {
1106
1106
t .Skip ("deduplication not supported on this filesystem" )
1107
1107
}
1108
1108
t .Errorf ("Unexpected error in FileDedupeRange: %s" , unix .ErrnoName (errno ))
You can’t perform that action at this time.
0 commit comments