File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -1845,3 +1845,47 @@ dependency `bar` does not specify a version.
1845
1845
)
1846
1846
. run ( ) ;
1847
1847
}
1848
+
1849
+ #[ cargo_test]
1850
+ fn long_file_names ( ) {
1851
+ // Filenames over 100 characters require a GNU extension tarfile.
1852
+ // See #8453.
1853
+
1854
+ registry:: init ( ) ;
1855
+ let long_name = concat ! (
1856
+ "012345678901234567890123456789012345678901234567890123456789" ,
1857
+ "012345678901234567890123456789012345678901234567890123456789" ,
1858
+ "012345678901234567890123456789012345678901234567890123456789"
1859
+ ) ;
1860
+ let p = project ( )
1861
+ . file (
1862
+ "Cargo.toml" ,
1863
+ r#"
1864
+ [package]
1865
+ name = "foo"
1866
+ version = "0.1.0"
1867
+ license = "MIT"
1868
+ description = "foo"
1869
+ homepage = "foo"
1870
+
1871
+ [dependencies]
1872
+ "# ,
1873
+ )
1874
+ . file ( long_name, "something" )
1875
+ . file ( "src/main.rs" , "fn main() {}" )
1876
+ . build ( ) ;
1877
+
1878
+ p. cargo ( "package" ) . run ( ) ;
1879
+ p. cargo ( "package --list" )
1880
+ . with_stdout ( & format ! (
1881
+ "\
1882
+ {}
1883
+ Cargo.lock
1884
+ Cargo.toml
1885
+ Cargo.toml.orig
1886
+ src/main.rs
1887
+ " ,
1888
+ long_name
1889
+ ) )
1890
+ . run ( ) ;
1891
+ }
You can’t perform that action at this time.
0 commit comments