|
@@ -8,6 +8,7 @@ package fs
|
|
|
|
|
|
import (
|
|
import (
|
|
"bytes"
|
|
"bytes"
|
|
|
|
+ "errors"
|
|
"io"
|
|
"io"
|
|
"math/rand"
|
|
"math/rand"
|
|
"os"
|
|
"os"
|
|
@@ -329,7 +330,7 @@ func TestCopyRange(tttt *testing.T) {
|
|
t.Fatal("dst file is not a basic file")
|
|
t.Fatal("dst file is not a basic file")
|
|
}
|
|
}
|
|
if err := impl(srcBasic, dstBasic, testCase.srcOffset, testCase.dstOffset, testCase.copySize); err != nil {
|
|
if err := impl(srcBasic, dstBasic, testCase.srcOffset, testCase.dstOffset, testCase.copySize); err != nil {
|
|
- if err == syscall.ENOTSUP {
|
|
|
|
|
|
+ if errors.Is(err, errors.ErrUnsupported) {
|
|
// Test runner can adjust directory in which to run the tests, that allow broader tests.
|
|
// Test runner can adjust directory in which to run the tests, that allow broader tests.
|
|
t.Skip("Not supported on the current filesystem, set STFSTESTPATH env var.")
|
|
t.Skip("Not supported on the current filesystem, set STFSTESTPATH env var.")
|
|
}
|
|
}
|