File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -279,11 +279,16 @@ fn test_pax_long_paths() {
279279 // Extract archive
280280 fs:: create_dir ( & dst_dir) . unwrap ( ) ;
281281 let output = run_pax_in_dir ( & [ "-r" , "-f" , archive. to_str ( ) . unwrap ( ) ] , & dst_dir) ;
282- // Some filesystems (e.g., macOS with certain configurations) may not support very long paths
282+ // Some filesystems or environments may not support very long paths
283+ // - macOS: "Operation not permitted" or "File name too long"
284+ // - Linux: "Is a directory" can occur with path handling edge cases
283285 if !output. status . success ( ) {
284286 let stderr = String :: from_utf8_lossy ( & output. stderr ) ;
285- if stderr. contains ( "Operation not permitted" ) || stderr. contains ( "File name too long" ) {
286- eprintln ! ( "Skipping long path test: filesystem doesn't support very long paths" ) ;
287+ if stderr. contains ( "Operation not permitted" )
288+ || stderr. contains ( "File name too long" )
289+ || stderr. contains ( "Is a directory" )
290+ {
291+ eprintln ! ( "Skipping long path test: filesystem/environment doesn't support very long paths" ) ;
287292 return ;
288293 }
289294 }
You can’t perform that action at this time.
0 commit comments