File tree 3 files changed +7
-3
lines changed 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 4
4
path(paste(rep("a", 1e+05), collapse = ""))
5
5
Condition
6
6
Error in `path_tidy()`:
7
- ! Total path length must be less than PATH_MAX: 1024
7
+ ! Total path length must be less than PATH_MAX: <path-max>
8
8
Code
9
9
do.call(path, as.list(rep("a", 1e+05)))
10
10
Condition
11
11
Error in `path_tidy()`:
12
- ! Total path length must be less than PATH_MAX: 1024
12
+ ! Total path length must be less than PATH_MAX: <path-max>
13
13
14
14
# path_rel: works for POSIX paths
15
15
Original file line number Diff line number Diff line change @@ -37,3 +37,7 @@ named_fs_path <- function(x) {
37
37
transform_error <- function (x ) {
38
38
sub(" Error in `.*[(][)]`:" , " Error:" , x )
39
39
}
40
+
41
+ transform_path_max <- function (x ) {
42
+ sub(" PATH_MAX: [0-9]+" , " PATH_MAX: <path-max>" , x )
43
+ }
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ describe("path", {
52
52
expect_snapshot(error = TRUE , {
53
53
path(paste(rep(" a" , 100000 ), collapse = " " ))
54
54
do.call(path , as.list(rep(" a" , 100000 )))
55
- })
55
+ }, transform = transform_path_max )
56
56
})
57
57
58
58
it(" follows recycling rules" , {
You can’t perform that action at this time.
0 commit comments