File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1315,6 +1315,36 @@ mod tests {
13151315 } )
13161316 }
13171317
1318+ #[ test]
1319+ #[ ignore]
1320+ fn test_failed_build_with_existing_successful_release ( ) {
1321+ wrapper ( |env| {
1322+ // rand 0.8.5 fails to build with recent nightly versions
1323+ // https://github.com/rust-lang/docs.rs/issues/26750
1324+ let crate_ = "rand" ;
1325+ let version = "0.8.5" ;
1326+ let mut builder = RustwideBuilder :: init ( env) . unwrap ( ) ;
1327+ builder. update_toolchain ( ) ?;
1328+ assert ! (
1329+ builder
1330+ . build_package( crate_, version, PackageKind :: CratesIo ) ?
1331+ . successful
1332+ ) ;
1333+
1334+ let storage = env. storage ( ) ;
1335+
1336+ // doc archive exists
1337+ let doc_archive = rustdoc_archive_path ( crate_, version) ;
1338+ assert ! ( storage. exists( & doc_archive) ?) ;
1339+
1340+ // source archive exists
1341+ let source_archive = source_archive_path ( crate_, version) ;
1342+ assert ! ( storage. exists( & source_archive) ?) ;
1343+
1344+ Ok ( ( ) )
1345+ } ) ;
1346+ }
1347+
13181348 #[ test]
13191349 #[ ignore]
13201350 fn test_proc_macro ( ) {
You can’t perform that action at this time.
0 commit comments