Skip to content

Commit 4ea825c

Browse files
committed
try test
1 parent 0b75f58 commit 4ea825c

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/docbuilder/rustwide_builder.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff 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() {

0 commit comments

Comments
 (0)