File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1668,7 +1668,7 @@ package `test v0.0.0 ([CWD])`
1668
1668
}
1669
1669
1670
1670
#[ cargo_test]
1671
- /// Make sure broken symlinks don't break the build
1671
+ /// Make sure broken and loop symlinks don't break the build
1672
1672
///
1673
1673
/// This test requires you to be able to make symlinks.
1674
1674
/// For windows, this may require you to enable developer mode.
@@ -1681,6 +1681,10 @@ fn ignore_broken_symlinks() {
1681
1681
. file ( "Cargo.toml" , & basic_bin_manifest ( "foo" ) )
1682
1682
. file ( "src/foo.rs" , & main_file ( r#""i am foo""# , & [ ] ) )
1683
1683
. symlink ( "Notafile" , "bar" )
1684
+ // To hit the symlink directory, we need a build script
1685
+ // to trigger a full scan of package files.
1686
+ . file ( "build.rs" , & main_file ( r#""build script""# , & [ ] ) )
1687
+ . symlink_dir ( "a/b" , "a/b/c/d/foo" )
1684
1688
. build ( ) ;
1685
1689
1686
1690
p. cargo ( "build" ) . run ( ) ;
You can’t perform that action at this time.
0 commit comments